`:top
In `F33f`_`[mathematics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mathematics]`_`f, a `!generating function`! is a representation of an `F33f`_`[infinite sequence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Infinite_sequence]`_`f of numbers as the `F33f`_`[coefficients`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Coefficient]`_`f of a `F33f`_`[formal power series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Formal_power_series]`_`f. Generating functions are often expressed in `F33f`_`[closed form`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Closed-form_expression]`_`f (rather than as a series), by some expression involving operations on the formal series.
There are various types of generating functions, including `!ordinary generating functions`!, `!exponential generating functions`!, `!Lambert series`!, `!Bell series`!, and `!Dirichlet series`!. Every sequence in principle has a generating function of each type (except that Lambert and Dirichlet series require indices to start at 1 rather than 0), but the ease with which they can be handled may differ considerably. The particular generating function, if any, that is most useful in a given context will depend upon the nature of the sequence and the details of the problem being addressed.
Generating functions are sometimes called `!generating series`!,`:cite-ref-1[`F5bf`_`[1`#cite-note-1]`_`f] in that a series of terms can be said to be the generator of its sequence of term coefficients.
>>Contents
• `F0af`_`[History`#history]`_`f
• `F0af`_`[Definition`#definition]`_`f
• `F0af`_`[Convergence`#convergence]`_`f
• `F0af`_`[Limitations`#limitations]`_`f
• `F0af`_`[Types`#types]`_`f
• `F0af`_`[Ordinary generating function (OGF)`#ordinary-generating-function-ogf]`_`f
• `F0af`_`[Exponential generating function (EGF)`#exponential-generating-function-egf]`_`f
• `F0af`_`[Poisson generating function`#poisson-generating-function]`_`f
• `F0af`_`[Lambert series`#lambert-series]`_`f
• `F0af`_`[Bell series`#bell-series]`_`f
• `F0af`_`[Dirichlet series generating functions (DGFs)`#dirichlet-series-generating-functions-dgfs]`_`f
• `F0af`_`[Polynomial sequence generating functions`#polynomial-sequence-generating-functions]`_`f
• `F0af`_`[Other generating functions`#other-generating-functions]`_`f
• `F0af`_`[Ordinary generating functions`#ordinary-generating-functions]`_`f
• `F0af`_`[Examples for simple sequences`#examples-for-simple-sequences]`_`f
• `F0af`_`[Rational functions`#rational-functions]`_`f
• `F0af`_`[Operations on generating functions`#operations-on-generating-functions]`_`f
• `F0af`_`[P -recursive sequences and holonomic generating functions`#p-recursive-sequences-and-holonomic-generating-functions]`_`f
• `F0af`_`[Relation to discrete-time Fourier transform`#relation-to-discrete-time-fourier-transform]`_`f
• `F0af`_`[Asymptotic growth of a sequence`#asymptotic-growth-of-a-sequence]`_`f
• `F0af`_`[Bivariate and multivariate generating functions`#bivariate-and-multivariate-generating-functions]`_`f
• `F0af`_`[Representation by continued fractions (Jacobi-type J -fractions)`#representation-by-continued-fractions-jacobi-type-j-fractions]`_`f
• `F0af`_`[Examples`#examples]`_`f
• `F0af`_`[Square numbers`#square-numbers]`_`f
• `F0af`_`[Applications`#applications]`_`f
• `F0af`_`[Various techniques: Evaluating sums and tackling other problems with generating functions`#various-techniques-evaluating-sums-and-tackling-other-problems-with-generating-functions]`_`f
• `F0af`_`[Convolution (Cauchy products)`#convolution-cauchy-products]`_`f
• `F0af`_`[Implicit generating functions and the Lagrange inversion formula`#implicit-generating-functions-and-the-lagrange-inversion-formula]`_`f
• `F0af`_`[Introducing a free parameter (snake oil method)`#introducing-a-free-parameter-snake-oil-method]`_`f
• `F0af`_`[Generating functions prove congruences`#generating-functions-prove-congruences]`_`f
• `F0af`_`[Transformations of generating functions`#transformations-of-generating-functions]`_`f
• `F0af`_`[Tables of special generating functions`#tables-of-special-generating-functions]`_`f
• `F0af`_`[See also`#see-also]`_`f
• `F0af`_`[Notes`#notes]`_`f
• `F0af`_`[References`#references]`_`f
• `F0af`_`[Citations`#citations]`_`f
• `F0af`_`[External links`#external-links]`_`f
-─
>>History
Generating functions were first introduced by `F33f`_`[Abraham de Moivre`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Abraham_de_Moivre]`_`f in 1730, in order to solve the general linear recurrence problem.`:cite-ref-2[`F5bf`_`[2`#cite-note-2]`_`f]
`F33f`_`[George Pólya`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=George_Pólya]`_`f writes in `*`F33f`_`[Mathematics and plausible reasoning`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mathematics_and_plausible_reasoning]`_`f`*:
`*The name "generating function" is due to `F33f`_`[Laplace`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Laplace]`_`f. Yet, without giving it a name, `F33f`_`[Euler`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Euler]`_`f used the device of generating functions long before Laplace [..]. He applied this mathematical tool to several problems in Combinatory Analysis and the `F33f`_`[Theory of Numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Number_theory]`_`f.`*
>>Definition
`*A generating function is a device somewhat similar to a bag. Instead of carrying many little objects detachedly, which could be embarrassing, we put them all in a bag, and then we have only one object to carry, the bag.`*
— `F33f`_`[George Pólya`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=George_Pólya]`_`f, `*`F33f`_`[Mathematics and plausible reasoning`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mathematics_and_plausible_reasoning]`_`f`* (1954)
`*A generating function is a clothesline on which we hang up a sequence of numbers for display.`*
— `F33f`_`[Herbert Wilf`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Herbert_Wilf]`_`f, `*Generatingfunctionology`* (1994)
>>>Convergence
Unlike an ordinary series, the `*formal`* `F33f`_`[power series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Power_series]`_`f is not required to `F33f`_`[converge`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Convergent_series]`_`f: in fact, the generating function is not actually regarded as a `F33f`_`[function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Function_(mathematics)]`_`f, and the "variable" remains an `F33f`_`[indeterminate`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Indeterminate_(variable)]`_`f. One can generalize to formal power series in more than one indeterminate, to encode information about infinite multi-dimensional arrays of numbers. Thus generating functions are not functions in the formal sense of a mapping from a `F33f`_`[domain`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Domain_of_a_function]`_`f to a `F33f`_`[codomain`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Codomain]`_`f.
These expressions in terms of the indeterminate x may involve arithmetic operations, differentiation with respect to x and composition with (i.e., substitution into) other generating functions; since these operations are also defined for functions, the result looks like a function of x. Indeed, the closed form expression can often be interpreted as a function that can be evaluated at (sufficiently small) concrete values of x, and which has the formal series as its `F33f`_`[series expansion`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Series_expansion]`_`f; this explains the designation "generating functions". However such interpretation is not required to be possible, because formal series are not required to give a `F33f`_`[convergent series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Convergent_series]`_`f when a nonzero numeric value is substituted for x.
>>>Limitations
Not all expressions that are meaningful as functions of x are meaningful as expressions designating formal series; for example, negative and fractional powers of x are examples of functions that do not have a corresponding formal power series.
>>Types
>>>Ordinary generating function (OGF)
When the term `*generating function`* is used without qualification, it is usually taken to mean an ordinary generating function. The `*ordinary generating function`* of a sequence `*a`*`*n`* is: G ( a n ; x ) = ∑ ∑ n = 0 ∞ ∞ a n x n . {\\displaystyle G(a_{n};x)=\\sum _{n=0}^{\\infty }a_{n}x^{n}.} If `*a`*`*n`* is the `F33f`_`[probability mass function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Probability_mass_function]`_`f of a `F33f`_`[discrete random variable`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Discrete_random_variable]`_`f, then its ordinary generating function is called a `F33f`_`[probability-generating function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Probability-generating_function]`_`f.
>>>Exponential generating function (EGF)
The `*exponential generating function`* of a sequence `*a`*`*n`* is EG ( a n ; x ) = ∑ ∑ n = 0 ∞ ∞ a n x n n ! . {\\displaystyle \\operatorname {EG} (a_{n};x)=\\sum _{n=0}^{\\infty }a_{n}{\\frac {x^{n}}{n!}}.}
Exponential generating functions are generally more convenient than ordinary generating functions for `F33f`_`[combinatorial enumeration`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Combinatorial_enumeration]`_`f problems that involve labelled objects.`:cite-ref-3[`F5bf`_`[3`#cite-note-3]`_`f]
Another benefit of exponential generating functions is that they are useful in transferring linear `F33f`_`[recurrence relations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Recurrence_relations]`_`f to the realm of `F33f`_`[differential equations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Differential_equations]`_`f. For example, take the `F33f`_`[Fibonacci sequence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fibonacci_sequence]`_`f {`*fn`*} that satisfies the linear recurrence relation `*f`*`*n`*+2 = `*f`*`*n`*+1 + `*f`*`*n`*. The corresponding exponential generating function has the form EF ( x ) = ∑ ∑ n = 0 ∞ ∞ f n n ! x n {\\displaystyle \\operatorname {EF} (x)=\\sum _{n=0}^{\\infty }{\\frac {f_{n}}{n!}}x^{n}}
and its derivatives can readily be shown to satisfy the differential equation EF″(`*x`*) = EF′(`*x`*) + EF(`*x`*) as a direct analogue with the recurrence relation above. In this view, the factorial term `*n`*! is merely a counter-term to normalise the derivative operator acting on `*x`*`*n`*.
>>>Poisson generating function
The `*Poisson generating function`* of a sequence `*a`*`*n`* is PG ( a n ; x ) = ∑ ∑ n = 0 ∞ ∞ a n e − − x x n n ! = e − − x EG ( a n ; x ) . {\\displaystyle \\operatorname {PG} (a_{n};x)=\\sum _{n=0}^{\\infty }a_{n}e^{-x}{\\frac {x^{n}}{n!}}=e^{-x}\\,\\operatorname {EG} (a_{n};x).}
>>>Lambert series
The `*Lambert series`* of a sequence `*a`*`*n`* is LG ( a n ; x ) = ∑ ∑ n = 1 ∞ ∞ a n x n 1 − − x n . {\\displaystyle \\operatorname {LG} (a_{n};x)=\\sum _{n=1}^{\\infty }a_{n}{\\frac {x^{n}}{1-x^{n}}}.} Note that in a Lambert series the index n starts at 1, not at 0, as the first term would otherwise be undefined.
The Lambert series coefficients in the power series expansions b n := [ x n ] LG ( a n ; x ) {\\displaystyle b_{n}:=[x^{n}]\\operatorname {LG} (a_{n};x)} for integers `*n`* ≥ 1 are related by the `F33f`_`[divisor sum`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Divisor_sum_identities]`_`f b n = ∑ ∑ d | n a d . {\\displaystyle b_{n}=\\sum _{d|n}a_{d}.} The `F33f`_`[main article`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Lambert_series]`_`f provides several more classical, or at least well-known examples related to special `F33f`_`[arithmetic functions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Arithmetic_functions]`_`f in `F33f`_`[number theory`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Number_theory]`_`f. As an example of a Lambert series identity not given in the main article, we can show that for |`*x`*|, |`*xq`*| < 1 we have that `:cite-ref-4[`F5bf`_`[4`#cite-note-4]`_`f] ∑ ∑ n = 1 ∞ ∞ q n x n 1 − − x n = ∑ ∑ n = 1 ∞ ∞ q n x n 2 1 − − q x n + ∑ ∑ n = 1 ∞ ∞ q n x n ( n + 1 ) 1 − − x n , {\\displaystyle \\sum _{n=1}^{\\infty }{\\frac {q^{n}x^{n}}{1-x^{n}}}=\\sum _{n=1}^{\\infty }{\\frac {q^{n}x^{n^{2}}}{1-qx^{n}}}+\\sum _{n=1}^{\\infty }{\\frac {q^{n}x^{n(n+1)}}{1-x^{n}}},}
where we have the special case identity for the generating function of the `F33f`_`[divisor function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Divisor_function]`_`f, `*d`*(`*n`*) ≡ `*σ`*0(`*n`*), given by ∑ ∑ n = 1 ∞ ∞ x n 1 − − x n = ∑ ∑ n = 1 ∞ ∞ x n 2 ( 1 + x n ) 1 − − x n . {\\displaystyle \\sum _{n=1}^{\\infty }{\\frac {x^{n}}{1-x^{n}}}=\\sum _{n=1}^{\\infty }{\\frac {x^{n^{2}}\\left(1+x^{n}\\right)}{1-x^{n}}}.}
>>>Bell series
The `F33f`_`[Bell series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Bell_series]`_`f of a sequence `*a`*`*n`* is an expression in terms of both an indeterminate x and a prime p and is given by:`:cite-ref-5[`F5bf`_`[5`#cite-note-5]`_`f] BG p ( a n ; x ) = ∑ ∑ n = 0 ∞ ∞ a p n x n . {\\displaystyle \\operatorname {BG} _{p}(a_{n};x)=\\sum _{n=0}^{\\infty }a_{p^{n}}x^{n}.}
>>>Dirichlet series generating functions (DGFs)
`F33f`_`[Formal Dirichlet series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Formal_Dirichlet_series]`_`f are often classified as generating functions, although they are not strictly formal power series. The `*Dirichlet series generating function`* of a sequence `*a`*`*n`* is:`:cite-ref-w56-6-0[`F5bf`_`[6`#cite-note-w56-6]`_`f] DG ( a n ; s ) = ∑ ∑ n = 1 ∞ ∞ a n n s . {\\displaystyle \\operatorname {DG} (a_{n};s)=\\sum _{n=1}^{\\infty }{\\frac {a_{n}}{n^{s}}}.}
The Dirichlet series generating function is especially useful when `*a`*`*n`* is a `F33f`_`[multiplicative function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Multiplicative_function]`_`f, in which case it has an `F33f`_`[Euler product`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Euler_product]`_`f expression`:cite-ref-w59-7-0[`F5bf`_`[7`#cite-note-w59-7]`_`f] in terms of the function's Bell series: DG ( a n ; s ) = ∏ ∏ p BG p ( a n ; p − − s ) . {\\displaystyle \\operatorname {DG} (a_{n};s)=\\prod _{p}\\operatorname {BG} _{p}(a_{n};p^{-s})\\,.}
If `*a`*`*n`* is a `F33f`_`[Dirichlet character`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dirichlet_character]`_`f then its Dirichlet series generating function is called a `F33f`_`[Dirichlet L-series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dirichlet_L-series]`_`f. We also have a relation between the pair of coefficients in the `F33f`_`[Lambert series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Lambert_series]`_`f expansions above and their DGFs. Namely, we can prove that: [ x n ] LG ( a n ; x ) = b n {\\displaystyle [x^{n}]\\operatorname {LG} (a_{n};x)=b_{n}} if and only if DG ( a n ; s ) ζ ζ ( s ) = DG ( b n ; s ) , {\\displaystyle \\operatorname {DG} (a_{n};s)\\zeta (s)=\\operatorname {DG} (b_{n};s),} where `*ζ`*(`*s`*) is the `F33f`_`[Riemann zeta function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Riemann_zeta_function]`_`f.`:cite-ref-8[`F5bf`_`[8`#cite-note-8]`_`f]
The sequence ak generated by a `F33f`_`[Dirichlet series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dirichlet_series]`_`f generating function (DGF) corresponding to: DG ( a k ; s ) = ζ ζ ( s ) m {\\displaystyle \\operatorname {DG} (a_{k};s)=\\zeta (s)^{m}} has the ordinary generating function: ∑ ∑ k = 1 k = n a k x k = x + ( m 1 ) ∑ ∑ 2 ≤ ≤ a ≤ ≤ n x a + ( m 2 ) ∑ ∑ a = 2 ∞ ∞ ∑ ∑ b = 2 ∞ ∞ a b ≤ ≤ n x a b + ( m 3 ) ∑ ∑ a = 2 ∞ ∞ ∑ ∑ c = 2 ∞ ∞ ∑ ∑ b = 2 ∞ ∞ a b c ≤ ≤ n x a b c + ( m 4 ) ∑ ∑ a = 2 ∞ ∞ ∑ ∑ b = 2 ∞ ∞ ∑ ∑ c = 2 ∞ ∞ ∑ ∑ d = 2 ∞ ∞ a b c d ≤ ≤ n x a b c d + ⋯ ⋯ {\\displaystyle \\sum _{k=1}^{k=n}a_{k}x^{k}=x+{\\binom {m}{1}}\\sum _{2\\leq a\\leq n}x^{a}+{\\binom {m}{2}}{\\underset {ab\\leq n}{\\sum _{a=2}^{\\infty }\\sum _{b=2}^{\\infty }}}x^{ab}+{\\binom {m}{3}}{\\underset {abc\\leq n}{\\sum _{a=2}^{\\infty }\\sum _{c=2}^{\\infty }\\sum _{b=2}^{\\infty }}}x^{abc}+{\\binom {m}{4}}{\\underset {abcd\\leq n}{\\sum _{a=2}^{\\infty }\\sum _{b=2}^{\\infty }\\sum _{c=2}^{\\infty }\\sum _{d=2}^{\\infty }}}x^{abcd}+\\cdots }
>>>Polynomial sequence generating functions
The idea of generating functions can be extended to sequences of other objects. Thus, for example, polynomial sequences of `F33f`_`[binomial type`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_type]`_`f are generated by: e x f ( t ) = ∑ ∑ n = 0 ∞ ∞ p n ( x ) n ! t n {\\displaystyle e^{xf(t)}=\\sum _{n=0}^{\\infty }{\\frac {p_{n}(x)}{n!}}t^{n}} where `*p`*`*n`*(`*x`*) is a sequence of polynomials and `*f`*(`*t`*) is a function of a certain form. `F33f`_`[Sheffer sequences`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Sheffer_sequence]`_`f are generated in a similar way. See the main article `F33f`_`[generalized Appell polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generalized_Appell_polynomials]`_`f for more information.
Examples of `F33f`_`[polynomial sequences`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Polynomial_sequence]`_`f generated by more complex generating functions include:
• `F33f`_`[Appell polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Appell_polynomials]`_`f
• `F33f`_`[Chebyshev polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Chebyshev_polynomials]`_`f
• `F33f`_`[Difference polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Difference_polynomials]`_`f
• `F33f`_`[Generalized Appell polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generalized_Appell_polynomials]`_`f
• `F33f`_`[q-difference polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Q-difference_polynomial]`_`f
>>>Other generating functions
Other sequences generated by more complex generating functions include:
• Double exponential generating functions e.g. the `F33f`_`[Bell numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Bell_numbers]`_`f
• Hadamard products of generating functions and diagonal generating functions, and their corresponding `F33f`_`[integral transformations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f
>>>>Convolution polynomials
Knuth's article titled "`*Convolution Polynomials`*"`:cite-ref-9[`F5bf`_`[9`#cite-note-9]`_`f] defines a generalized class of `*convolution polynomial`* sequences by their special generating functions of the form F ( z ) x = exp ( x log F ( z ) ) = ∑ ∑ n = 0 ∞ ∞ f n ( x ) z n , {\\displaystyle F(z)^{x}=\\exp {\\bigl (}x\\log F(z){\\bigr )}=\\sum _{n=0}^{\\infty }f_{n}(x)z^{n},} for some analytic function F with a power series expansion such that `*F`*(0) = 1.
We say that a family of polynomials, `*f`*0, `*f`*1, `*f`*2, ..., forms a `*convolution family`* if `F33f`_`[deg`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Degree_of_a_polynomial]`_`f `*fn`* ≤ `*n`* and if the following convolution condition holds for all x, y and for all `*n`* ≥ 0: f n ( x + y ) = f n ( x ) f 0 ( y ) + f n − − 1 ( x ) f 1 ( y ) + ⋯ ⋯ + f 1 ( x ) f n − − 1 ( y ) + f 0 ( x ) f n ( y ) . {\\displaystyle f_{n}(x+y)=f_{n}(x)f_{0}(y)+f_{n-1}(x)f_{1}(y)+\\cdots +f_{1}(x)f_{n-1}(y)+f_{0}(x)f_{n}(y).}
We see that for non-identically zero convolution families, this definition is equivalent to requiring that the sequence have an ordinary generating function of the first form given above.
A sequence of convolution polynomials defined in the notation above has the following properties:
• The sequence `*n`*! · `*fn`*(`*x`*) is of `F33f`_`[binomial type`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_type]`_`f
• Special values of the sequence include `*fn`*(1) = [`*zn`*] `*F`*(`*z`*) and `*fn`*(0) = `*δ`*`*n`*,0, and
• For arbitrary (fixed) x , y , t ∈ ∈ C {\\displaystyle x,y,t\\in \\mathbb {C} } , these polynomials satisfy convolution formulas of the form
f n ( x + y ) = ∑ ∑ k = 0 n f k ( x ) f n − − k ( y ) f n ( 2 x ) = ∑ ∑ k = 0 n f k ( x ) f n − − k ( x ) x n f n ( x + y ) = ( x + y ) ∑ ∑ k = 0 n k f k ( x ) f n − − k ( y ) ( x + y ) f n ( x + y + t n ) x + y + t n = ∑ ∑ k = 0 n x f k ( x + t k ) x + t k y f n − − k ( y + t ( n − − k ) ) y + t ( n − − k ) . {\\displaystyle {\\begin{aligned}f_{n}(x+y)&=\\sum _{k=0}^{n}f_{k}(x)f_{n-k}(y)\\\\f_{n}(2x)&=\\sum _{k=0}^{n}f_{k}(x)f_{n-k}(x)\\\\xnf_{n}(x+y)&=(x+y)\\sum _{k=0}^{n}kf_{k}(x)f_{n-k}(y)\\\\{\\frac {(x+y)f_{n}(x+y+tn)}{x+y+tn}}&=\\sum _{k=0}^{n}{\\frac {xf_{k}(x+tk)}{x+tk}}{\\frac {yf_{n-k}(y+t(n-k))}{y+t(n-k)}}.\\end{aligned}}}
For a fixed non-zero parameter t ∈ ∈ C {\\displaystyle t\\in \\mathbb {C} } , we have modified generating functions for these convolution polynomial sequences given by z F n ( x + t n ) ( x + t n ) = [ z n ] F t ( z ) x , {\\displaystyle {\\frac {zF_{n}(x+tn)}{(x+tn)}}=\\left[z^{n}\\right]{\\mathcal {F}}_{t}(z)^{x},} where 𝓕`*t`*(`*z`*) is implicitly defined by a `F33f`_`[functional equation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Functional_equation]`_`f of the form 𝓕`*t`*(`*z`*) = `*F`*(`*x`*𝓕`*t`*(`*z`*)`*t`*). Moreover, we can use matrix methods (as in the reference) to prove that given two convolution polynomial sequences, ⟨ `*fn`*(`*x`*) ⟩ and ⟨ `*gn`*(`*x`*) ⟩, with respective corresponding generating functions, `*F`*(`*z`*)`*x`* and `*G`*(`*z`*)`*x`*, then for arbitrary t we have the identity [ z n ] ( G ( z ) F ( z G ( z ) t ) ) x = ∑ ∑ k = 0 n F k ( x ) G n − − k ( x + t k ) . {\\displaystyle \\left[z^{n}\\right]\\left(G(z)F\\left(zG(z)^{t}\\right)\\right)^{x}=\\sum _{k=0}^{n}F_{k}(x)G_{n-k}(x+tk).}
Examples of convolution polynomial sequences include the `*binomial power series`*, 𝓑`*t`*(`*z`*) = 1 + `*z`*𝓑`*t`*(`*z`*)`*t`*, so-termed `*tree polynomials`*, the `F33f`_`[Bell numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Bell_numbers]`_`f, `*B`*(`*n`*), the `F33f`_`[Laguerre polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Laguerre_polynomials]`_`f, and the `F33f`_`[Stirling convolution polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_polynomial]`_`f.
>>Ordinary generating functions
>>>Examples for simple sequences
Polynomials are a special case of ordinary generating functions, corresponding to finite sequences, or equivalently sequences that vanish after a certain point. These are important in that many finite sequences can usefully be interpreted as generating functions, such as the `F33f`_`[Poincaré polynomial`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Poincaré_polynomial]`_`f and others.
A fundamental generating function is that of the constant sequence 1, 1, 1, 1, 1, 1, 1, 1, 1, ..., whose ordinary generating function is the `F33f`_`[geometric series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Geometric_series]`_`f ∑ ∑ n = 0 ∞ ∞ x n = 1 1 − − x . {\\displaystyle \\sum _{n=0}^{\\infty }x^{n}={\\frac {1}{1-x}}.}
The left-hand side is the `F33f`_`[Maclaurin series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Maclaurin_series]`_`f expansion of the right-hand side. Alternatively, the equality can be justified by multiplying the power series on the left by 1 − `*x`*, and checking that the result is the constant power series 1 (in other words, that all coefficients except the one of `*x`*0 are equal to 0). Moreover, there can be no other power series with this property. The left-hand side therefore designates the `F33f`_`[multiplicative inverse`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Multiplicative_inverse]`_`f of 1 − `*x`* in the ring of power series.
Expressions for the ordinary generating function of other sequences are easily derived from this one. For instance, the substitution `*x`* → `*ax`* gives the generating function for the `F33f`_`[geometric sequence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Geometric_progression]`_`f 1, `*a`*, `*a`*2, `*a`*3, ... for any constant a: ∑ ∑ n = 0 ∞ ∞ ( a x ) n = 1 1 − − a x . {\\displaystyle \\sum _{n=0}^{\\infty }(ax)^{n}={\\frac {1}{1-ax}}.}
(The equality also follows directly from the fact that the left-hand side is the Maclaurin series expansion of the right-hand side.) In particular, ∑ ∑ n = 0 ∞ ∞ ( − − 1 ) n x n = 1 1 + x . {\\displaystyle \\sum _{n=0}^{\\infty }(-1)^{n}x^{n}={\\frac {1}{1+x}}.}
One can also introduce regular gaps in the sequence by replacing x by some power of x, so for instance for the sequence 1, 0, 1, 0, 1, 0, 1, 0, ... (which skips over `*x`*, `*x`*3, `*x`*5, ...) one gets the generating function ∑ ∑ n = 0 ∞ ∞ x 2 n = 1 1 − − x 2 . {\\displaystyle \\sum _{n=0}^{\\infty }x^{2n}={\\frac {1}{1-x^{2}}}.}
By squaring the initial generating function, or by finding the derivative of both sides with respect to x and making a change of running variable `*n`* → `*n`* + 1, one sees that the coefficients form the sequence 1, 2, 3, 4, 5, ..., so one has ∑ ∑ n = 0 ∞ ∞ ( n + 1 ) x n = 1 ( 1 − − x ) 2 , {\\displaystyle \\sum _{n=0}^{\\infty }(n+1)x^{n}={\\frac {1}{(1-x)^{2}}},}
and the third power has as coefficients the `F33f`_`[triangular numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Triangular_number]`_`f 1, 3, 6, 10, 15, 21, ... whose term n is the `F33f`_`[binomial coefficient`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_coefficient]`_`f (`*n`* + 2
2), so that ∑ ∑ n = 0 ∞ ∞ ( n + 2 2 ) x n = 1 ( 1 − − x ) 3 . {\\displaystyle \\sum _{n=0}^{\\infty }{\\binom {n+2}{2}}x^{n}={\\frac {1}{(1-x)^{3}}}.}
More generally, for any non-negative integer k and non-zero real value a, it is true that ∑ ∑ n = 0 ∞ ∞ a n ( n + k k ) x n = 1 ( 1 − − a x ) k + 1 . {\\displaystyle \\sum _{n=0}^{\\infty }a^{n}{\\binom {n+k}{k}}x^{n}={\\frac {1}{(1-ax)^{k+1}}}\\,.}
Since 2 ( n + 2 2 ) − − 3 ( n + 1 1 ) + ( n 0 ) = 2 ( n + 1 ) ( n + 2 ) 2 − − 3 ( n + 1 ) + 1 = n 2 , {\\displaystyle 2{\\binom {n+2}{2}}-3{\\binom {n+1}{1}}+{\\binom {n}{0}}=2{\\frac {(n+1)(n+2)}{2}}-3(n+1)+1=n^{2},}
one can find the ordinary generating function for the sequence 0, 1, 4, 9, 16, ... of `F33f`_`[square numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Square_number]`_`f by linear combination of binomial-coefficient generating sequences: G ( n 2 ; x ) = ∑ ∑ n = 0 ∞ ∞ n 2 x n = 2 ( 1 − − x ) 3 − − 3 ( 1 − − x ) 2 + 1 1 − − x = x ( x + 1 ) ( 1 − − x ) 3 . {\\displaystyle G(n^{2};x)=\\sum _{n=0}^{\\infty }n^{2}x^{n}={\\frac {2}{(1-x)^{3}}}-{\\frac {3}{(1-x)^{2}}}+{\\frac {1}{1-x}}={\\frac {x(x+1)}{(1-x)^{3}}}.}
We may also expand alternately to generate this same sequence of squares as a sum of derivatives of the `F33f`_`[geometric series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Geometric_series]`_`f in the following form: G ( n 2 ; x ) = ∑ ∑ n = 0 ∞ ∞ n 2 x n = ∑ ∑ n = 0 ∞ ∞ n ( n − − 1 ) x n + ∑ ∑ n = 0 ∞ ∞ n x n = x 2 D 2 [ 1 1 − − x ] + x D [ 1 1 − − x ] = 2 x 2 ( 1 − − x ) 3 + x ( 1 − − x ) 2 = x ( x + 1 ) ( 1 − − x ) 3 . {\\displaystyle {\\begin{aligned}G(n^{2};x)&=\\sum _{n=0}^{\\infty }n^{2}x^{n}\\\\[4px]&=\\sum _{n=0}^{\\infty }n(n-1)x^{n}+\\sum _{n=0}^{\\infty }nx^{n}\\\\[4px]&=x^{2}D^{2}\\left[{\\frac {1}{1-x}}\\right]+xD\\left[{\\frac {1}{1-x}}\\right]\\\\[4px]&={\\frac {2x^{2}}{(1-x)^{3}}}+{\\frac {x}{(1-x)^{2}}}={\\frac {x(x+1)}{(1-x)^{3}}}.\\end{aligned}}}
By induction, we can similarly show for positive integers `*m`* ≥ 1 that`:cite-ref-10[`F5bf`_`[10`#cite-note-10]`_`f]`:cite-ref-11[`F5bf`_`[11`#cite-note-11]`_`f] n m = ∑ ∑ j = 0 m { m j } n ! ( n − − j ) ! , {\\displaystyle n^{m}=\\sum _{j=0}^{m}{\\begin{Bmatrix}m\\\\j\\end{Bmatrix}}{\\frac {n!}{(n-j)!}},}
where {`*n`*
`*k`*} denote the `F33f`_`[Stirling numbers of the second kind`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers_of_the_second_kind]`_`f and where the generating function ∑ ∑ n = 0 ∞ ∞ n ! ( n − − j ) ! z n = j ! ⋅ ⋅ z j ( 1 − − z ) j + 1 , {\\displaystyle \\sum _{n=0}^{\\infty }{\\frac {n!}{(n-j)!}}\\,z^{n}={\\frac {j!\\cdot z^{j}}{(1-z)^{j+1}}},}
so that we can form the analogous generating functions over the integral mth powers generalizing the result in the square case above. In particular, since we can write z k ( 1 − − z ) k + 1 = ∑ ∑ i = 0 k ( k i ) ( − − 1 ) k − − i ( 1 − − z ) i + 1 , {\\displaystyle {\\frac {z^{k}}{(1-z)^{k+1}}}=\\sum _{i=0}^{k}{\\binom {k}{i}}{\\frac {(-1)^{k-i}}{(1-z)^{i+1}}},}
we can apply a well-known finite sum identity involving the `F33f`_`[Stirling numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers]`_`f to obtain that`:cite-ref-12[`F5bf`_`[12`#cite-note-12]`_`f] ∑ ∑ n = 0 ∞ ∞ n m z n = ∑ ∑ j = 0 m { m + 1 j + 1 } ( − − 1 ) m − − j j ! ( 1 − − z ) j + 1 . {\\displaystyle \\sum _{n=0}^{\\infty }n^{m}z^{n}=\\sum _{j=0}^{m}{\\begin{Bmatrix}m+1\\\\j+1\\end{Bmatrix}}{\\frac {(-1)^{m-j}j!}{(1-z)^{j+1}}}.}
>>>Rational functions
The ordinary generating function of a sequence can be expressed as a `F33f`_`[rational function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Rational_function]`_`f (the ratio of two finite-degree polynomials) if and only if the sequence is a `F33f`_`[linear recursive sequence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Linear_recursive_sequence]`_`f with constant coefficients; this generalizes the examples above. Conversely, every sequence generated by a fraction of polynomials satisfies a linear recurrence with constant coefficients; these coefficients are identical to the coefficients of the fraction denominator polynomial (so they can be directly read off). This observation shows it is easy to solve for generating functions of sequences defined by a linear `F33f`_`[finite difference equation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Finite_difference_equation]`_`f with constant coefficients, and then hence, for explicit closed-form formulas for the coefficients of these generating functions. The prototypical example here is to derive `F33f`_`[Binet's formula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binet's_formula]`_`f for the `F33f`_`[Fibonacci numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fibonacci_numbers]`_`f via generating function techniques.
We also notice that the class of rational generating functions precisely corresponds to the generating functions that enumerate `*quasi-polynomial`* sequences of the form `:cite-ref-gflect-13-0[`F5bf`_`[13`#cite-note-gflect-13]`_`f] f n = p 1 ( n ) ρ ρ 1 n + ⋯ ⋯ + p ℓ ℓ ( n ) ρ ρ ℓ ℓ n , {\\displaystyle f_{n}=p_{1}(n)\\rho _{1}^{n}+\\cdots +p_{\\ell }(n)\\rho _{\\ell }^{n},}
where the reciprocal roots, ρ ρ i ∈ ∈ C {\\displaystyle \\rho _{i}\\in \\mathbb {C} } , are fixed scalars and where `*p`*`*i`*(`*n`*) is a polynomial in n for all 1 ≤ `*i`* ≤ `*ℓ`*.
In general, `F33f`_`[Hadamard products`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f of rational functions produce rational generating functions. Similarly, if F ( s , t ) := ∑ ∑ m , n ≥ ≥ 0 f ( m , n ) w m z n {\\displaystyle F(s,t):=\\sum _{m,n\\geq 0}f(m,n)w^{m}z^{n}}
is a bivariate rational generating function, then its corresponding `*diagonal generating function`*, diag ( F ) := ∑ ∑ n = 0 ∞ ∞ f ( n , n ) z n , {\\displaystyle \\operatorname {diag} (F):=\\sum _{n=0}^{\\infty }f(n,n)z^{n},}
is `*algebraic`*. For example, if we let`:cite-ref-14[`F5bf`_`[14`#cite-note-14]`_`f] F ( s , t ) := ∑ ∑ i , j ≥ ≥ 0 ( i + j i ) s i t j = 1 1 − − s − − t , {\\displaystyle F(s,t):=\\sum _{i,j\\geq 0}{\\binom {i+j}{i}}s^{i}t^{j}={\\frac {1}{1-s-t}},}
then this generating function's diagonal coefficient generating function is given by the well-known OGF formula diag ( F ) = ∑ ∑ n = 0 ∞ ∞ ( 2 n n ) z n = 1 1 − − 4 z . {\\displaystyle \\operatorname {diag} (F)=\\sum _{n=0}^{\\infty }{\\binom {2n}{n}}z^{n}={\\frac {1}{\\sqrt {1-4z}}}.}
This result is computed in many ways, including `F33f`_`[Cauchy's integral formula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cauchy's_integral_formula]`_`f or `F33f`_`[contour integration`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Contour_integration]`_`f, taking complex `F33f`_`[residues`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Residue_(complex_analysis)]`_`f, or by direct manipulations of `F33f`_`[formal power series`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Formal_power_series]`_`f in two variables.
>>>Operations on generating functions
>>>>Multiplication yields convolution
Multiplication of ordinary generating functions yields a discrete `F33f`_`[convolution`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Convolution]`_`f (the `F33f`_`[Cauchy product`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cauchy_product]`_`f) of the sequences. For example, the sequence of cumulative sums (compare to the slightly more general `F33f`_`[Euler–Maclaurin formula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Euler–Maclaurin_formula]`_`f) ( a 0 , a 0 + a 1 , a 0 + a 1 + a 2 , … … ) {\\displaystyle (a_{0},a_{0}+a_{1},a_{0}+a_{1}+a_{2},\\ldots )} of a sequence with ordinary generating function `*G`*(`*an`*; `*x`*) has the generating function G ( a n ; x ) ⋅ ⋅ 1 1 − − x {\\displaystyle G(a_{n};x)\\cdot {\\frac {1}{1-x}}} because 1/1 − `*x`* is the ordinary generating function for the sequence (1, 1, ...). See also the `F33f`_`[section on convolutions`#convolution-cauchy-products]`_`f in the applications section of this article below for further examples of problem solving with convolutions of generating functions and interpretations.
>>>>Shifting sequence indices
For integers `*m`* ≥ 1, we have the following two analogous identities for the modified generating functions enumerating the shifted sequence variants of ⟨ `*g`*`*n`* − `*m`* ⟩ and ⟨ `*g`*`*n`* + `*m`* ⟩, respectively: z m G ( z ) = ∑ ∑ n = m ∞ ∞ g n − − m z n G ( z ) − − g 0 − − g 1 z − − ⋯ ⋯ − − g m − − 1 z m − − 1 z m = ∑ ∑ n = 0 ∞ ∞ g n + m z n . {\\displaystyle {\\begin{aligned}&z^{m}G(z)=\\sum _{n=m}^{\\infty }g_{n-m}z^{n}\\\\[4px]&{\\frac {G(z)-g_{0}-g_{1}z-\\cdots -g_{m-1}z^{m-1}}{z^{m}}}=\\sum _{n=0}^{\\infty }g_{n+m}z^{n}.\\end{aligned}}}
>>>>Differentiation and integration of generating functions
We have the following respective power series expansions for the first derivative of a generating function and its integral: G ′ ( z ) = ∑ ∑ n = 0 ∞ ∞ ( n + 1 ) g n + 1 z n z ⋅ ⋅ G ′ ( z ) = ∑ ∑ n = 0 ∞ ∞ n g n z n ∫ ∫ 0 z G ( t ) d t = ∑ ∑ n = 1 ∞ ∞ g n − − 1 n z n . {\\displaystyle {\\begin{aligned}G'(z)&=\\sum _{n=0}^{\\infty }(n+1)g_{n+1}z^{n}\\\\[4px]z\\cdot G'(z)&=\\sum _{n=0}^{\\infty }ng_{n}z^{n}\\\\[4px]\\int _{0}^{z}G(t)\\,dt&=\\sum _{n=1}^{\\infty }{\\frac {g_{n-1}}{n}}z^{n}.\\end{aligned}}}
The differentiation–multiplication operation of the second identity can be repeated k times to multiply the sequence by `*n`*`*k`*, but that requires alternating between differentiation and multiplication. If instead doing k differentiations in sequence, the effect is to multiply by the kth `F33f`_`[falling factorial`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Falling_factorial]`_`f: z k G ( k ) ( z ) = ∑ ∑ n = 0 ∞ ∞ n k _ _ g n z n = ∑ ∑ n = 0 ∞ ∞ n ( n − − 1 ) ⋯ ⋯ ( n − − k + 1 ) g n z n for all k ∈ ∈ N . {\\displaystyle z^{k}G^{(k)}(z)=\\sum _{n=0}^{\\infty }n^{\\underline {k}}g_{n}z^{n}=\\sum _{n=0}^{\\infty }n(n-1)\\dotsb (n-k+1)g_{n}z^{n}\\quad {\\text{for all }}k\\in \\mathbb {N} .}
Using the `F33f`_`[Stirling numbers of the second kind`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers_of_the_second_kind]`_`f, that can be turned into another formula for multiplying by n k {\\displaystyle n^{k}} as follows (see the main article on `F33f`_`[generating function transformations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f): ∑ ∑ j = 0 k { k j } z j F ( j ) ( z ) = ∑ ∑ n = 0 ∞ ∞ n k f n z n for all k ∈ ∈ N . {\\displaystyle \\sum _{j=0}^{k}{\\begin{Bmatrix}k\\\\j\\end{Bmatrix}}z^{j}F^{(j)}(z)=\\sum _{n=0}^{\\infty }n^{k}f_{n}z^{n}\\quad {\\text{for all }}k\\in \\mathbb {N} .}
A negative-order reversal of this sequence powers formula corresponding to the operation of repeated integration is defined by the `F33f`_`[zeta series transformation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f and its generalizations defined as a derivative-based `F33f`_`[transformation of generating functions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f, or alternately termwise by and performing an `F33f`_`[integral transformation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f on the sequence generating function. Related operations of performing `F33f`_`[fractional integration`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fractional_calculus]`_`f on a sequence generating function are discussed `F33f`_`[here`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f.
>>>>Enumerating arithmetic progressions of sequences
In this section we give formulas for generating functions enumerating the sequence {`*f`*`*an`* + `*b`*} given an ordinary generating function `*F`*(`*z`*), where `*a`* ≥ 2, 0 ≤ `*b`* < `*a`*, and `*a`* and `*b`* are integers (see the `F33f`_`[main article on transformations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f). For `*a`* = 2, this is simply the familiar decomposition of a function into `F33f`_`[even and odd parts`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Even_and_odd_functions]`_`f (i.e., even and odd powers): ∑ ∑ n = 0 ∞ ∞ f 2 n z 2 n = F ( z ) + F ( − − z ) 2 ∑ ∑ n = 0 ∞ ∞ f 2 n + 1 z 2 n + 1 = F ( z ) − − F ( − − z ) 2 . {\\displaystyle {\\begin{aligned}\\sum _{n=0}^{\\infty }f_{2n}z^{2n}&={\\frac {F(z)+F(-z)}{2}}\\\\[4px]\\sum _{n=0}^{\\infty }f_{2n+1}z^{2n+1}&={\\frac {F(z)-F(-z)}{2}}.\\end{aligned}}}
More generally, suppose that `*a`* ≥ 3 and that `*ωa`* = exp 2`*πi`*/`*a`* denotes the ath `F33f`_`[primitive root of unity`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Root_of_unity]`_`f. Then, as an application of the `F33f`_`[discrete Fourier transform`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Discrete_Fourier_transform]`_`f, we have the formula`:cite-ref-taocpv1-15-0[`F5bf`_`[15`#cite-note-taocpv1-15]`_`f] ∑ ∑ n = 0 ∞ ∞ f a n + b z a n + b = 1 a ∑ ∑ m = 0 a − − 1 ω ω a − − m b F ( ω ω a m z ) . {\\displaystyle \\sum _{n=0}^{\\infty }f_{an+b}z^{an+b}={\\frac {1}{a}}\\sum _{m=0}^{a-1}\\omega _{a}^{-mb}F\\left(\\omega _{a}^{m}z\\right).}
For integers `*m`* ≥ 1, another useful formula providing somewhat `*reversed`* floored arithmetic progressions — effectively repeating each coefficient m times — are generated by the identity`:cite-ref-16[`F5bf`_`[16`#cite-note-16]`_`f] ∑ ∑ n = 0 ∞ ∞ f ⌊ n m ⌋ z n = 1 − − z m 1 − − z F ( z m ) = ( 1 + z + ⋯ ⋯ + z m − − 2 + z m − − 1 ) F ( z m ) . {\\displaystyle \\sum _{n=0}^{\\infty }f_{\\left\\lfloor {\\frac {n}{m}}\\right\\rfloor }z^{n}={\\frac {1-z^{m}}{1-z}}F(z^{m})=\\left(1+z+\\cdots +z^{m-2}+z^{m-1}\\right)F(z^{m}).}
>>>P -recursive sequences and holonomic generating functions
>>>>Definitions
A formal power series (or function) `*F`*(`*z`*) is said to be `!holonomic`! if it satisfies a linear differential equation of the form`:cite-ref-17[`F5bf`_`[17`#cite-note-17]`_`f] c 0 ( z ) F ( r ) ( z ) + c 1 ( z ) F ( r − − 1 ) ( z ) + ⋯ ⋯ + c r ( z ) F ( z ) = 0 , {\\displaystyle c_{0}(z)F^{(r)}(z)+c_{1}(z)F^{(r-1)}(z)+\\cdots +c_{r}(z)F(z)=0,}
where the coefficients `*ci`*(`*z`*) are in the field of rational functions, C ( z ) {\\displaystyle \\mathbb {C} (z)} . Equivalently, F ( z ) {\\displaystyle F(z)} is holonomic if the vector space over C ( z ) {\\displaystyle \\mathbb {C} (z)} spanned by the set of all of its derivatives is finite dimensional.
Since we can clear denominators if need be in the previous equation, we may assume that the functions, `*ci`*(`*z`*) are polynomials in z. Thus we can see an equivalent condition that a generating function is holonomic if its coefficients satisfy a `!P-recurrence`! of the form c ^ ^ s ( n ) f n + s + c ^ ^ s − − 1 ( n ) f n + s − − 1 + ⋯ ⋯ + c ^ ^ 0 ( n ) f n = 0 , {\\displaystyle {\\widehat {c}}_{s}(n)f_{n+s}+{\\widehat {c}}_{s-1}(n)f_{n+s-1}+\\cdots +{\\widehat {c}}_{0}(n)f_{n}=0,}
for all large enough `*n`* ≥ `*n`*0 and where the `*ĉi`*(`*n`*) are fixed finite-degree polynomials in n. In other words, the properties that a sequence be `*P-recursive`* and have a holonomic generating function are equivalent. Holonomic functions are closed under the `F33f`_`[Hadamard product`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f operation ⊙ on generating functions.
>>>>Examples
The functions `*e`*`*z`*, log `*z`*, cos `*z`*, arcsin `*z`*, 1 + z {\\displaystyle {\\sqrt {1+z}}} , the `F33f`_`[dilogarithm`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dilogarithm]`_`f function Li2(`*z`*), the `F33f`_`[generalized hypergeometric functions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generalized_hypergeometric_function]`_`f `*pFq`*(...; ...; `*z`*) and the functions defined by the power series ∑ ∑ n = 0 ∞ ∞ z n ( n ! ) 2 {\\displaystyle \\sum _{n=0}^{\\infty }{\\frac {z^{n}}{(n!)^{2}}}}
and the non-convergent ∑ ∑ n = 0 ∞ ∞ n ! ⋅ ⋅ z n {\\displaystyle \\sum _{n=0}^{\\infty }n!\\cdot z^{n}} are all holonomic.
Examples of P-recursive sequences with holonomic generating functions include `*f`*`*n`* ≔ 1/`*n`* + 1 (2`*n`*
`*n`*) and `*f`*`*n`* ≔ 2`*n`*/`*n`*2 + 1, where sequences such as n {\\displaystyle {\\sqrt {n}}} and log `*n`* are `*not`* P-recursive due to the nature of singularities in their corresponding generating functions. Similarly, functions with infinitely many singularities such as tan `*z`*, sec `*z`*, and `F33f`_`[Γ(z)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Gamma_function]`_`f are `*not`* holonomic functions.
>>>>Software for working with P -recursive sequences and holonomic generating functions
Tools for processing and working with P-recursive sequences in `*`F33f`_`[Mathematica`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Mathematica]`_`f`* include the software packages provided for non-commercial use on the RISC Combinatorics Group algorithmic combinatorics software site. Despite being mostly closed-source, particularly powerful tools in this software suite are provided by the `B100`F9d9`!Guess`!`f`b package for guessing `*P-recurrences`* for arbitrary input sequences (useful for `F33f`_`[experimental mathematics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Experimental_mathematics]`_`f and exploration) and the `B100`F9d9`!Sigma`!`f`b package which is able to find P-recurrences for many sums and solve for closed-form solutions to P-recurrences involving generalized `F33f`_`[harmonic numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Harmonic_number]`_`f.`:cite-ref-18[`F5bf`_`[18`#cite-note-18]`_`f] Other packages listed on this particular RISC site are targeted at working with holonomic `*generating functions`* specifically.
>>>Relation to discrete-time Fourier transform
When the series `F33f`_`[converges absolutely`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Absolute_convergence]`_`f, G ( a n ; e − − i ω ω ) = ∑ ∑ n = 0 ∞ ∞ a n e − − i ω ω n {\\displaystyle G\\left(a_{n};e^{-i\\omega }\\right)=\\sum _{n=0}^{\\infty }a_{n}e^{-i\\omega n}} is the discrete-time Fourier transform of the sequence `*a`*0, `*a`*1, ....
>>>Asymptotic growth of a sequence
In calculus, often the growth rate of the coefficients of a power series can be used to deduce a `F33f`_`[radius of convergence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Radius_of_convergence]`_`f for the power series. The reverse can also hold; often the radius of convergence for a generating function can be used to deduce the `F33f`_`[asymptotic growth`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Asymptotic_analysis]`_`f of the underlying sequence.
For instance, if an ordinary generating function `*G`*(`*a`*`*n`*; `*x`*) that has a finite radius of convergence of r can be written as G ( a n ; x ) = A ( x ) + B ( x ) ( 1 − − x r ) − − β β x α α {\\displaystyle G(a_{n};x)={\\frac {A(x)+B(x)\\left(1-{\\frac {x}{r}}\\right)^{-\\beta }}{x^{\\alpha }}}}
where each of `*A`*(`*x`*) and `*B`*(`*x`*) is a function that is `F33f`_`[analytic`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Analytic_function]`_`f to a radius of convergence greater than r (or is `F33f`_`[entire`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Entire_function]`_`f), and where `*B`*(`*r`*) ≠ 0 then a n ∼ ∼ B ( r ) r α α Γ Γ ( β β ) n β β − − 1 ( 1 r ) n ∼ ∼ B ( r ) r α α ( n + β β − − 1 n ) ( 1 r ) n = B ( r ) r α α ( ( β β n ) ) ( 1 r ) n , {\\displaystyle a_{n}\\sim {\\frac {B(r)}{r^{\\alpha }\\Gamma (\\beta )}}\\,n^{\\beta -1}\\left({\\frac {1}{r}}\\right)^{n}\\sim {\\frac {B(r)}{r^{\\alpha }}}{\\binom {n+\\beta -1}{n}}\\left({\\frac {1}{r}}\\right)^{n}={\\frac {B(r)}{r^{\\alpha }}}\\left(\\!\\!{\\binom {\\beta }{n}}\\!\\!\\right)\\left({\\frac {1}{r}}\\right)^{n}\\,,} using the `F33f`_`[gamma function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Gamma_function]`_`f, a `F33f`_`[binomial coefficient`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_coefficient]`_`f, or a `F33f`_`[multiset coefficient`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Multiset_coefficient]`_`f. Note that limit as n goes to infinity of the ratio of `*a`*`*n`* to any of these expressions is guaranteed to be 1; not merely that `*a`*`*n`* is proportional to them.
Often this approach can be iterated to generate several terms in an asymptotic series for `*a`*`*n`*. In particular, G ( a n − − B ( r ) r α α ( n + β β − − 1 n ) ( 1 r ) n ; x ) = G ( a n ; x ) − − B ( r ) r α α ( 1 − − x r ) − − β β . {\\displaystyle G\\left(a_{n}-{\\frac {B(r)}{r^{\\alpha }}}{\\binom {n+\\beta -1}{n}}\\left({\\frac {1}{r}}\\right)^{n};x\\right)=G(a_{n};x)-{\\frac {B(r)}{r^{\\alpha }}}\\left(1-{\\frac {x}{r}}\\right)^{-\\beta }\\,.}
The asymptotic growth of the coefficients of this generating function can then be sought via the finding of A, B, α, β, and r to describe the generating function, as above.
Similar asymptotic analysis is possible for exponential generating functions; with an exponential generating function, it is `*a`*`*n`*/`*n`*! that grows according to these asymptotic formulae. Generally, if the generating function of one sequence minus the generating function of a second sequence has a radius of convergence that is larger than the radius of convergence of the individual generating functions then the two sequences have the same asymptotic growth.
>>>>Asymptotic growth of the sequence of squares
As derived above, the ordinary generating function for the sequence of squares is: G ( n 2 ; x ) = x ( x + 1 ) ( 1 − − x ) 3 . {\\displaystyle G(n^{2};x)={\\frac {x(x+1)}{(1-x)^{3}}}.}
With `*r`* = 1, `*α`* = −1, `*β`* = 3, `*A`*(`*x`*) = 0, and `*B`*(`*x`*) = `*x`* + 1, we can verify that the squares grow as expected, like the squares: a n ∼ ∼ B ( r ) r α α Γ Γ ( β β ) n β β − − 1 ( 1 r ) n = 1 + 1 1 − − 1 Γ Γ ( 3 ) n 3 − − 1 ( 1 1 ) n = n 2 . {\\displaystyle a_{n}\\sim {\\frac {B(r)}{r^{\\alpha }\\Gamma (\\beta )}}\\,n^{\\beta -1}\\left({\\frac {1}{r}}\\right)^{n}={\\frac {1+1}{1^{-1}\\,\\Gamma (3)}}\\,n^{3-1}\\left({\\frac {1}{1}}\\right)^{n}=n^{2}.}
>>>>Asymptotic growth of the Catalan numbers
The ordinary generating function for the `F33f`_`[Catalan numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Catalan_number]`_`f is G ( C n ; x ) = 1 − − 1 − − 4 x 2 x . {\\displaystyle G(C_{n};x)={\\frac {1-{\\sqrt {1-4x}}}{2x}}.}
With `*r`* = 1/4, `*α`* = 1, `*β`* = −1/2, `*A`*(`*x`*) = 1/2, and `*B`*(`*x`*) = −1/2, we can conclude that, for the Catalan numbers: C n ∼ ∼ B ( r ) r α α Γ Γ ( β β ) n β β − − 1 ( 1 r ) n = − − 1 2 ( 1 4 ) 1 Γ Γ ( − − 1 2 ) n − − 1 2 − − 1 ( 1 1 4 ) n = 4 n n 3 2 π π . {\\displaystyle C_{n}\\sim {\\frac {B(r)}{r^{\\alpha }\\Gamma (\\beta )}}\\,n^{\\beta -1}\\left({\\frac {1}{r}}\\right)^{n}={\\frac {-{\\frac {1}{2}}}{\\left({\\frac {1}{4}}\\right)^{1}\\Gamma \\left(-{\\frac {1}{2}}\\right)}}\\,n^{-{\\frac {1}{2}}-1}\\left({\\frac {1}{\\,{\\frac {1}{4}}\\,}}\\right)^{n}={\\frac {4^{n}}{n^{\\frac {3}{2}}{\\sqrt {\\pi }}}}.}
>>>Bivariate and multivariate generating functions
The generating function in several variables can be generalized to arrays with multiple indices. These non-polynomial double sum examples are called `!multivariate generating functions`!, or `!super generating functions`!. For two variables, these are often called `!bivariate generating functions`!.
>>>>Bivariate case
The ordinary generating function of a two-dimensional array `*a`*`*m`*,`*n`* (where n and m are natural numbers) is: G ( a m , n ; x , y ) = ∑ ∑ m , n = 0 ∞ ∞ a m , n x m y n . {\\displaystyle G(a_{m,n};x,y)=\\sum _{m,n=0}^{\\infty }a_{m,n}x^{m}y^{n}.} For instance, since (1 + `*x`*)`*n`* is the ordinary generating function for `F33f`_`[binomial coefficients`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_coefficients]`_`f for a fixed n, one may ask for a bivariate generating function that generates the binomial coefficients (`*n`*
`*k`*) for all k and n. To do this, consider (1 + `*x`*)`*n`* itself as a sequence in n, and find the generating function in y that has these sequence values as coefficients. Since the generating function for `*a`*`*n`* is: 1 1 − − a y , {\\displaystyle {\\frac {1}{1-ay}},} the generating function for the binomial coefficients is: ∑ ∑ n , k ( n k ) x k y n = 1 1 − − ( 1 + x ) y = 1 1 − − y − − x y . {\\displaystyle \\sum _{n,k}{\\binom {n}{k}}x^{k}y^{n}={\\frac {1}{1-(1+x)y}}={\\frac {1}{1-y-xy}}.} Other examples of such include the following two-variable generating functions for the `F33f`_`[binomial coefficients`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_coefficients]`_`f, the `F33f`_`[Stirling numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers]`_`f, and the `F33f`_`[Eulerian numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Eulerian_numbers]`_`f, where `*ω`* and `*z`* denote the two variables:`:cite-ref-19[`F5bf`_`[19`#cite-note-19]`_`f] e z + w z = ∑ ∑ m , n ≥ ≥ 0 ( n m ) w m z n n ! e w ( e z − − 1 ) = ∑ ∑ m , n ≥ ≥ 0 { n m } w m z n n ! 1 ( 1 − − z ) w = ∑ ∑ m , n ≥ ≥ 0 [ n m ] w m z n n ! 1 − − w e ( w − − 1 ) z − − w = ∑ ∑ m , n ≥ ≥ 0 ⟨ n m ⟩ w m z n n ! e w − − e z w e z − − z e w = ∑ ∑ m , n ≥ ≥ 0 ⟨ m + n + 1 m ⟩ w m z n ( m + n + 1 ) ! . {\\displaystyle {\\begin{aligned}e^{z+wz}&=\\sum _{m,n\\geq 0}{\\binom {n}{m}}w^{m}{\\frac {z^{n}}{n!}}\\\\[4px]e^{w(e^{z}-1)}&=\\sum _{m,n\\geq 0}{\\begin{Bmatrix}n\\\\m\\end{Bmatrix}}w^{m}{\\frac {z^{n}}{n!}}\\\\[4px]{\\frac {1}{(1-z)^{w}}}&=\\sum _{m,n\\geq 0}{\\begin{bmatrix}n\\\\m\\end{bmatrix}}w^{m}{\\frac {z^{n}}{n!}}\\\\[4px]{\\frac {1-w}{e^{(w-1)z}-w}}&=\\sum _{m,n\\geq 0}\\left\\langle {\\begin{matrix}n\\\\m\\end{matrix}}\\right\\rangle w^{m}{\\frac {z^{n}}{n!}}\\\\[4px]{\\frac {e^{w}-e^{z}}{we^{z}-ze^{w}}}&=\\sum _{m,n\\geq 0}\\left\\langle {\\begin{matrix}m+n+1\\\\m\\end{matrix}}\\right\\rangle {\\frac {w^{m}z^{n}}{(m+n+1)!}}.\\end{aligned}}}
>>>>Multivariate case
Multivariate generating functions arise in practice when calculating the number of `F33f`_`[contingency tables`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Contingency_tables]`_`f of non-negative integers with specified row and column totals. Suppose the table has r rows and c columns; the row sums are `*t`*1, `*t`*2 ... `*tr`* and the column sums are `*s`*1, `*s`*2 ... `*sc`*. Then, according to `F33f`_`[I. J. Good`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=I._J._Good]`_`f,`:cite-ref-good-1986-20-0[`F5bf`_`[20`#cite-note-good-1986-20]`_`f] the number of such tables is the coefficient of: x 1 t 1 ⋯ ⋯ x r t r y 1 s 1 ⋯ ⋯ y c s c {\\displaystyle x_{1}^{t_{1}}\\cdots x_{r}^{t_{r}}y_{1}^{s_{1}}\\cdots y_{c}^{s_{c}}} in: ∏ ∏ i = 1 r ∏ ∏ j = 1 c 1 1 − − x i y j . {\\displaystyle \\prod _{i=1}^{r}\\prod _{j=1}^{c}{\\frac {1}{1-x_{i}y_{j}}}.}
>>>Representation by continued fractions (Jacobi-type J -fractions)
>>>>Definitions
Expansions of (formal) `*Jacobi-type`* and `*Stieltjes-type`* `F33f`_`[continued fractions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generalized_continued_fraction]`_`f (`*J-fractions`* and `*S-fractions`*, respectively) whose hth rational convergents represent `F33f`_`[2h-order accurate`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Order_of_accuracy]`_`f power series are another way to express the typically divergent ordinary generating functions for many special one and two-variate sequences. The particular form of the Jacobi-type continued fractions (J-fractions) are expanded as in the following equation and have the next corresponding power series expansions with respect to z for some specific, application-dependent component sequences, {ab`*i`*} and {`*c`*`*i`*}, where `*z`* ≠ 0 denotes the formal variable in the second power series expansion given below:`:cite-ref-21[`F5bf`_`[21`#cite-note-21]`_`f] J [ ∞ ∞ ] ( z ) = 1 1 − − c 1 z − − ab 2 z 2 1 − − c 2 z − − ab 3 z 2 ⋱ ⋱ = 1 + c 1 z + ( ab 2 + c 1 2 ) z 2 + ( 2 ab 2 c 1 + c 1 3 + ab 2 c 2 ) z 3 + ⋯ ⋯ {\\displaystyle {\\begin{aligned}J^{[\\infty ]}(z)&={\\cfrac {1}{1-c_{1}z-{\\cfrac {{\\text{ab}}_{2}z^{2}}{1-c_{2}z-{\\cfrac {{\\text{ab}}_{3}z^{2}}{\\ddots }}}}}}\\\\[4px]&=1+c_{1}z+\\left({\\text{ab}}_{2}+c_{1}^{2}\\right)z^{2}+\\left(2{\\text{ab}}_{2}c_{1}+c_{1}^{3}+{\\text{ab}}_{2}c_{2}\\right)z^{3}+\\cdots \\end{aligned}}}
The coefficients of z n {\\displaystyle z^{n}} , denoted in shorthand by `*jn`* ≔ [`*zn`*] `*J`*[∞](`*z`*), in the previous equations correspond to matrix solutions of the equations: [ k 0 , 1 k 1 , 1 0 0 ⋯ ⋯ k 0 , 2 k 1 , 2 k 2 , 2 0 ⋯ ⋯ k 0 , 3 k 1 , 3 k 2 , 3 k 3 , 3 ⋯ ⋯ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ] = [ k 0 , 0 0 0 0 ⋯ ⋯ k 0 , 1 k 1 , 1 0 0 ⋯ ⋯ k 0 , 2 k 1 , 2 k 2 , 2 0 ⋯ ⋯ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ] ⋅ ⋅ [ c 1 1 0 0 ⋯ ⋯ ab 2 c 2 1 0 ⋯ ⋯ 0 ab 3 c 3 1 ⋯ ⋯ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ] , {\\displaystyle {\\begin{bmatrix}k_{0,1}&k_{1,1}&0&0&\\cdots \\\\k_{0,2}&k_{1,2}&k_{2,2}&0&\\cdots \\\\k_{0,3}&k_{1,3}&k_{2,3}&k_{3,3}&\\cdots \\\\\\vdots &\\vdots &\\vdots &\\vdots \\end{bmatrix}}={\\begin{bmatrix}k_{0,0}&0&0&0&\\cdots \\\\k_{0,1}&k_{1,1}&0&0&\\cdots \\\\k_{0,2}&k_{1,2}&k_{2,2}&0&\\cdots \\\\\\vdots &\\vdots &\\vdots &\\vdots \\end{bmatrix}}\\cdot {\\begin{bmatrix}c_{1}&1&0&0&\\cdots \\\\{\\text{ab}}_{2}&c_{2}&1&0&\\cdots \\\\0&{\\text{ab}}_{3}&c_{3}&1&\\cdots \\\\\\vdots &\\vdots &\\vdots &\\vdots \\end{bmatrix}},}
where `*j`*0 ≡ `*k`*0,0 = 1, `*jn`* = `*k`*0,`*n`* for `*n`* ≥ 1, `*k`*`*r`*,`*s`* = 0 if `*r`* > `*s`*, and where for all integers `*p`*, `*q`* ≥ 0, we have an `*addition formula`* relation given by: j p + q = k 0 , p ⋅ ⋅ k 0 , q + ∑ ∑ i = 1 min ( p , q ) ab 2 ⋯ ⋯ ab i + 1 × × k i , p ⋅ ⋅ k i , q . {\\displaystyle j_{p+q}=k_{0,p}\\cdot k_{0,q}+\\sum _{i=1}^{\\min(p,q)}{\\text{ab}}_{2}\\cdots {\\text{ab}}_{i+1}\\times k_{i,p}\\cdot k_{i,q}.}
>>>>Properties of the h th convergent functions
For `*h`* ≥ 0 (though in practice when `*h`* ≥ 2), we can define the rational hth convergents to the infinite J-fraction, `*J`*[∞](`*z`*), expanded by: Conv h ( z ) := P h ( z ) Q h ( z ) = j 0 + j 1 z + ⋯ ⋯ + j 2 h − − 1 z 2 h − − 1 + ∑ ∑ n = 2 h ∞ ∞ j ~ ~ h , n z n {\\displaystyle \\operatorname {Conv} _{h}(z):={\\frac {P_{h}(z)}{Q_{h}(z)}}=j_{0}+j_{1}z+\\cdots +j_{2h-1}z^{2h-1}+\\sum _{n=2h}^{\\infty }{\\widetilde {j}}_{h,n}z^{n}}
component-wise through the sequences, `*Ph`*(`*z`*) and `*Qh`*(`*z`*), defined recursively by: P h ( z ) = ( 1 − − c h z ) P h − − 1 ( z ) − − ab h z 2 P h − − 2 ( z ) + δ δ h , 1 Q h ( z ) = ( 1 − − c h z ) Q h − − 1 ( z ) − − ab h z 2 Q h − − 2 ( z ) + ( 1 − − c 1 z ) δ δ h , 1 + δ δ 0 , 1 . {\\displaystyle {\\begin{aligned}P_{h}(z)&=(1-c_{h}z)P_{h-1}(z)-{\\text{ab}}_{h}z^{2}P_{h-2}(z)+\\delta _{h,1}\\\\Q_{h}(z)&=(1-c_{h}z)Q_{h-1}(z)-{\\text{ab}}_{h}z^{2}Q_{h-2}(z)+(1-c_{1}z)\\delta _{h,1}+\\delta _{0,1}.\\end{aligned}}}
Moreover, the rationality of the convergent function Conv`*h`*(`*z`*) for all `*h`* ≥ 2 implies additional finite difference equations and congruence properties satisfied by the sequence of `*jn`*, `*and`* for `*Mh`* ≔ ab2 ⋯ ab`*h`* + 1 if `*h`* ‖ `*M`*`*h`* then we have the congruence j n ≡ ≡ [ z n ] Conv h ( z ) ( mod h ) , {\\displaystyle j_{n}\\equiv [z^{n}]\\operatorname {Conv} _{h}(z){\\pmod {h}},}
for non-symbolic, determinate choices of the parameter sequences {ab`*i`*} and {`*c`*`*i`*} when `*h`* ≥ 2, that is, when these sequences do not implicitly depend on an auxiliary parameter such as q, x, or R as in the examples contained in the table below.
>>>>Examples
The next table provides examples of closed-form formulas for the component sequences found computationally (and subsequently proved correct in the cited references`:cite-ref-22[`F5bf`_`[22`#cite-note-22]`_`f]) in several special cases of the prescribed sequences, `*jn`*, generated by the general expansions of the J-fractions defined in the first subsection. Here we define 0 < |`*a`*|, |`*b`*|, |`*q`*| < 1 and the parameters R , α α ∈ ∈ Z + {\\displaystyle R,\\alpha \\in \\mathbb {Z} ^{+}} and x to be indeterminates with respect to these expansions, where the prescribed sequences enumerated by the expansions of these J-fractions are defined in terms of the `F33f`_`[q-Pochhammer symbol`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Q-Pochhammer_symbol]`_`f, `F33f`_`[Pochhammer symbol`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Pochhammer_symbol]`_`f, and the `F33f`_`[binomial coefficients`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_coefficients]`_`f.
`t
| j n {\\displaystyle j_{n}} | c 1 {\\displaystyle c_{1}} | c i ( i ≥ 2 ) {\\displaystyle c_{i}(i\\geq 2)} | a b i ( i ≥ 2 ) {\\displaystyle \\mathrm {ab} _{i}(i\\geq 2)} |
|---|---|---|---|
| q n 2 {\\displaystyle q^{n^{2}}} | q {\\displaystyle q} | q 2 h − 3 ( q 2 h + q 2 h − 2 − 1 ) {\\displaystyle q^{2h-3}\\left(q^{2h}+q^{2h-2}-1\\right)} | q 6 h − 10 ( q 2 h − 2 − 1 ) {\\displaystyle q^{6h-10}\\left(q^{2h-2}-1\\right)} |
| ( a ; q ) n {\\displaystyle (a;q)_{n}} | 1 − a {\\displaystyle 1-a} | q h − 1 − a q h − 2 ( q h + q h − 1 − 1 ) {\\displaystyle q^{h-1}-aq^{h-2}\\left(q^{h}+q^{h-1}-1\\right)} | a q 2 h − 4 ( a q h − 2 − 1 ) ( q h − 1 − 1 ) {\\displaystyle aq^{2h-4}\\left(aq^{h-2}-1\\right)\\left(q^{h-1}-1\\right)} |
| ( z q − n ; q ) n {\\displaystyle \\left(zq^{-n};q\\right)_{n}} | q − z q {\\displaystyle {\\frac {q-z}{q}}} | q h − z − q z + q h z q 2 h − 1 {\\displaystyle {\\frac {q^{h}-z-qz+q^{h}z}{q^{2h-1}}}} | ( q h − 1 − 1 ) ( q h − 1 − z ) ⋅ z q 4 h − 5 {\\displaystyle {\\frac {\\left(q^{h-1}-1\\right)\\left(q^{h-1}-z\\right)\\cdot z}{q^{4h-5}}}} |
| ( a ; q ) n ( b ; q ) n {\\displaystyle {\\frac {(a;q)_{n}}{(b;q)_{n}}}} | 1 − a 1 − b {\\displaystyle {\\frac {1-a}{1-b}}} | q i − 2 ( q + a b q 2 i − 3 + a ( 1 − q i − 1 − q i ) + b ( q i − q − 1 ) ) ( 1 − b q 2 i − 4 ) ( 1 − b q 2 i − 2 ) {\\displaystyle {\\frac {q^{i-2}\\left(q+abq^{2i-3}+a(1-q^{i-1}-q^{i})+b(q^{i}-q-1)\\right)}{\\left(1-bq^{2i-4}\\right)\\left(1-bq^{2i-2}\\right)}}} | q 2 i − 4 ( 1 − b q i − 3 ) ( 1 − a q i − 2 ) ( a − b q i − 2 ) ( 1 − q i − 1 ) ( 1 − b q 2 i − 5 ) ( 1 − b q 2 i − 4 ) 2 ( 1 − b q 2 i − 3 ) {\\displaystyle {\\frac {q^{2i-4}\\left(1-bq^{i-3}\\right)\\left(1-aq^{i-2}\\right)\\left(a-bq^{i-2}\\right)\\left(1-q^{i-1}\\right)}{\\left(1-bq^{2i-5}\\right)\\left(1-bq^{2i-4}\\right)^{2}\\left(1-bq^{2i-3}\\right)}}} |
| α n ⋅ ( R α ) n {\\displaystyle \\alpha ^{n}\\cdot \\left({\\frac {R}{\\alpha }}\\right)_{n}} | R {\\displaystyle R} | R + 2 α ( i − 1 ) {\\displaystyle R+2\\alpha (i-1)} | ( i − 1 ) α ( R + ( i − 2 ) α ) {\\displaystyle (i-1)\\alpha {\\bigl (}R+(i-2)\\alpha {\\bigr )}} |
| ( − 1 ) n ( x n ) {\\displaystyle (-1)^{n}{\\binom {x}{n}}} | − x {\\displaystyle -x} | − ( x + 2 ( i − 1 ) 2 ) ( 2 i − 1 ) ( 2 i − 3 ) {\\displaystyle -{\\frac {(x+2(i-1)^{2})}{(2i-1)(2i-3)}}} | { − ( x − i + 2 ) ( x + i − 1 ) 4 ⋅ ( 2 i − 3 ) 2 for i ≥ 3 ; − 1 2 x ( x + 1 ) for i = 2. {\\displaystyle {\\begin{cases}-{\\dfrac {(x-i+2)(x+i-1)}{4\\cdot (2i-3)^{2}}}&{\\text{for }}i\\geq 3;\\\\[4px]-{\\frac {1}{2}}x(x+1)&{\\text{for }}i=2.\\end{cases}}} |
| ( − 1 ) n ( x + n n ) {\\displaystyle (-1)^{n}{\\binom {x+n}{n}}} | − ( x + 1 ) {\\displaystyle -(x+1)} | ( x − 2 i ( i − 2 ) − 1 ) ( 2 i − 1 ) ( 2 i − 3 ) {\\displaystyle {\\frac {{\\bigl (}x-2i(i-2)-1{\\bigr )}}{(2i-1)(2i-3)}}} | { − ( x − i + 2 ) ( x + i − 1 ) 4 ⋅ ( 2 i − 3 ) 2 for i ≥ 3 ; − 1 2 x ( x + 1 ) for i = 2. {\\displaystyle {\\begin{cases}-{\\dfrac {(x-i+2)(x+i-1)}{4\\cdot (2i-3)^{2}}}&{\\text{for }}i\\geq 3;\\\\[4px]-{\\frac {1}{2}}x(x+1)&{\\text{for }}i=2.\\end{cases}}} |
`t
The radii of convergence of these series corresponding to the definition of the Jacobi-type J-fractions given above are in general different from that of the corresponding power series expansions defining the ordinary generating functions of these sequences.
>>Examples
>>>Square numbers
Generating functions for the sequence of `F33f`_`[square numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Square_number]`_`f `*a`*`*n`* = `*n`*2 are:
`t
| Generating function type | Equation |
|---|---|
| Ordinary generating function | G ( n 2 ; x ) = ∑ n = 0 ∞ n 2 x n = x ( x + 1 ) ( 1 − x ) 3 {\\displaystyle G(n^{2};x)=\\sum _{n=0}^{\\infty }n^{2}x^{n}={\\frac {x(x+1)}{(1-x)^{3}}}} |
| Exponential generating function | EG ( n 2 ; x ) = ∑ n = 0 ∞ n 2 x n n ! = x ( x + 1 ) e x {\\displaystyle \\operatorname {EG} (n^{2};x)=\\sum _{n=0}^{\\infty }{\\frac {n^{2}x^{n}}{n!}}=x(x+1)e^{x}} |
| Bell series | BG p ( n 2 ; x ) = ∑ n = 0 ∞ ( p n ) 2 x n = 1 1 − p 2 x {\\displaystyle \\operatorname {BG} _{p}\\left(n^{2};x\\right)=\\sum _{n=0}^{\\infty }\\left(p^{n}\\right)^{2}x^{n}={\\frac {1}{1-p^{2}x}}} |
| Dirichlet series | DG ( n 2 ; s ) = ∑ n = 1 ∞ n 2 n s = ζ ( s − 2 ) {\\displaystyle \\operatorname {DG} \\left(n^{2};s\\right)=\\sum _{n=1}^{\\infty }{\\frac {n^{2}}{n^{s}}}=\\zeta (s-2)} |
`t
where `*ζ`*(`*s)`* is the `F33f`_`[Riemann zeta function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Riemann_zeta_function]`_`f.
>>Applications
Generating functions are used to:
• Find a `F33f`_`[closed formula`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Closed_formula]`_`f for a sequence given in a recurrence relation, for example, `F33f`_`[Fibonacci numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fibonacci_number]`_`f.
• Find `F33f`_`[recurrence relations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Recurrence_relation]`_`f for sequences—the form of a generating function may suggest a recurrence formula.
• Find relationships between sequences—if the generating functions of two sequences have a similar form, then the sequences themselves may be related.
• Explore the asymptotic behaviour of sequences.
• Prove identities involving sequences.
• Solve `F33f`_`[enumeration`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Enumeration]`_`f problems in `F33f`_`[combinatorics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Combinatorics]`_`f and encoding their solutions. `F33f`_`[Rook polynomials`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Rook_polynomial]`_`f are an example of an application in combinatorics.
• Evaluate infinite sums.
>>>Various techniques: Evaluating sums and tackling other problems with generating functions
>>>>Example 1: Formula for sums of harmonic numbers
Generating functions give us several methods to manipulate sums and to establish identities between sums.
The simplest case occurs when `*sn`* = Σ`*n`*
`*k`* = 0 `*ak`*. We then know that `*S`*(`*z`*) = `*A`*(`*z`*)/1 − `*z`* for the corresponding ordinary generating functions.
For example, we can manipulate s n = ∑ ∑ k = 1 n H k , {\\displaystyle s_{n}=\\sum _{k=1}^{n}H_{k}\\,,} where `*Hk`* = 1 + 1/2 + ⋯ + 1/`*k`* are the `F33f`_`[harmonic numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Harmonic_number]`_`f. Let H ( z ) = ∑ ∑ n = 1 ∞ ∞ H n z n {\\displaystyle H(z)=\\sum _{n=1}^{\\infty }{H_{n}z^{n}}} be the ordinary generating function of the harmonic numbers. Then H ( z ) = 1 1 − − z ∑ ∑ n = 1 ∞ ∞ z n n , {\\displaystyle H(z)={\\frac {1}{1-z}}\\sum _{n=1}^{\\infty }{\\frac {z^{n}}{n}}\\,,} and thus S ( z ) = ∑ ∑ n = 1 ∞ ∞ s n z n = 1 ( 1 − − z ) 2 ∑ ∑ n = 1 ∞ ∞ z n n . {\\displaystyle S(z)=\\sum _{n=1}^{\\infty }{s_{n}z^{n}}={\\frac {1}{(1-z)^{2}}}\\sum _{n=1}^{\\infty }{\\frac {z^{n}}{n}}\\,.}
Using 1 ( 1 − − z ) 2 = ∑ ∑ n = 0 ∞ ∞ ( n + 1 ) z n , {\\displaystyle {\\frac {1}{(1-z)^{2}}}=\\sum _{n=0}^{\\infty }(n+1)z^{n}\\,,} `F33f`_`[convolution`#convolution-cauchy-products]`_`f with the numerator yields s n = ∑ ∑ k = 1 n n + 1 − − k k = ( n + 1 ) H n − − n , {\\displaystyle s_{n}=\\sum _{k=1}^{n}{\\frac {n+1-k}{k}}=(n+1)H_{n}-n\\,,} which can also be written as ∑ ∑ k = 1 n H k = ( n + 1 ) ( H n + 1 − − 1 ) . {\\displaystyle \\sum _{k=1}^{n}{H_{k}}=(n+1)(H_{n+1}-1)\\,.}
>>>>Example 2: Modified binomial coefficient sums and the binomial transform
As another example of using generating functions to relate sequences and manipulate sums, for an arbitrary sequence ⟨ `*fn`* ⟩ we define the two sequences of sums s n := ∑ ∑ m = 0 n ( n m ) f m 3 n − − m s ~ ~ n := ∑ ∑ m = 0 n ( n m ) ( m + 1 ) ( m + 2 ) ( m + 3 ) f m 3 n − − m , {\\displaystyle {\\begin{aligned}s_{n}&:=\\sum _{m=0}^{n}{\\binom {n}{m}}f_{m}3^{n-m}\\\\[4px]{\\tilde {s}}_{n}&:=\\sum _{m=0}^{n}{\\binom {n}{m}}(m+1)(m+2)(m+3)f_{m}3^{n-m}\\,,\\end{aligned}}} for all `*n`* ≥ 0, and seek to express the second sums in terms of the first. We suggest an approach by generating functions.
First, we use the `F33f`_`[binomial transform`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_transform]`_`f to write the generating function for the first sum as S ( z ) = 1 1 − − 3 z F ( z 1 − − 3 z ) . {\\displaystyle S(z)={\\frac {1}{1-3z}}F\\left({\\frac {z}{1-3z}}\\right).}
Since the generating function for the sequence ⟨ (`*n`* + 1)(`*n`* + 2)(`*n`* + 3) `*fn`* ⟩ is given by 6 F ( z ) + 18 z F ′ ( z ) + 9 z 2 F ″ ( z ) + z 3 F ‴ ( z ) {\\displaystyle 6F(z)+18zF'(z)+9z^{2}F''(z)+z^{3}F'''(z)} we may write the generating function for the second sum defined above in the form S ~ ~ ( z ) = 6 ( 1 − − 3 z ) F ( z 1 − − 3 z ) + 18 z ( 1 − − 3 z ) 2 F ′ ( z 1 − − 3 z ) + 9 z 2 ( 1 − − 3 z ) 3 F ″ ( z 1 − − 3 z ) + z 3 ( 1 − − 3 z ) 4 F ‴ ( z 1 − − 3 z ) . {\\displaystyle {\\tilde {S}}(z)={\\frac {6}{(1-3z)}}F\\left({\\frac {z}{1-3z}}\\right)+{\\frac {18z}{(1-3z)^{2}}}F'\\left({\\frac {z}{1-3z}}\\right)+{\\frac {9z^{2}}{(1-3z)^{3}}}F''\\left({\\frac {z}{1-3z}}\\right)+{\\frac {z^{3}}{(1-3z)^{4}}}F'''\\left({\\frac {z}{1-3z}}\\right).}
In particular, we may write this modified sum generating function in the form of a ( z ) ⋅ ⋅ S ( z ) + b ( z ) ⋅ ⋅ z S ′ ( z ) + c ( z ) ⋅ ⋅ z 2 S ″ ( z ) + d ( z ) ⋅ ⋅ z 3 S ‴ ( z ) , {\\displaystyle a(z)\\cdot S(z)+b(z)\\cdot zS'(z)+c(z)\\cdot z^{2}S''(z)+d(z)\\cdot z^{3}S'''(z),} for `*a`*(`*z`*) = 6(1 − 3`*z`*)3, `*b`*(`*z`*) = 18(1 − 3`*z`*)3, `*c`*(`*z`*) = 9(1 − 3`*z`*)3, and `*d`*(`*z`*) = (1 − 3`*z`*)3, where (1 − 3`*z`*)3 = 1 − 9`*z`* + 27`*z`*2 − 27`*z`*3.
Finally, it follows that we may express the second sums through the first sums in the following form: s ~ ~ n = [ z n ] ( 6 ( 1 − − 3 z ) 3 ∑ ∑ n = 0 ∞ ∞ s n z n + 18 ( 1 − − 3 z ) 3 ∑ ∑ n = 0 ∞ ∞ n s n z n + 9 ( 1 − − 3 z ) 3 ∑ ∑ n = 0 ∞ ∞ n ( n − − 1 ) s n z n + ( 1 − − 3 z ) 3 ∑ ∑ n = 0 ∞ ∞ n ( n − − 1 ) ( n − − 2 ) s n z n ) = ( n + 1 ) ( n + 2 ) ( n + 3 ) s n − − 9 n ( n + 1 ) ( n + 2 ) s n − − 1 + 27 ( n − − 1 ) n ( n + 1 ) s n − − 2 − − ( n − − 2 ) ( n − − 1 ) n s n − − 3 . {\\displaystyle {\\begin{aligned}{\\tilde {s}}_{n}&=[z^{n}]\\left(6(1-3z)^{3}\\sum _{n=0}^{\\infty }s_{n}z^{n}+18(1-3z)^{3}\\sum _{n=0}^{\\infty }ns_{n}z^{n}+9(1-3z)^{3}\\sum _{n=0}^{\\infty }n(n-1)s_{n}z^{n}+(1-3z)^{3}\\sum _{n=0}^{\\infty }n(n-1)(n-2)s_{n}z^{n}\\right)\\\\[4px]&=(n+1)(n+2)(n+3)s_{n}-9n(n+1)(n+2)s_{n-1}+27(n-1)n(n+1)s_{n-2}-(n-2)(n-1)ns_{n-3}.\\end{aligned}}}
>>>>Example 3: Generating functions for mutually recursive sequences
In this example, we reformulate a generating function example given in Section 7.3 of `*Concrete Mathematics`* (see also Section 7.1 of the same reference for pretty pictures of generating function series). In particular, suppose that we seek the total number of ways (denoted `*Un`*) to tile a 3-by-n rectangle with unmarked 2-by-1 domino pieces. Let the auxiliary sequence, `*Vn`*, be defined as the number of ways to cover a 3-by-n rectangle-minus-corner section of the full rectangle. We seek to use these definitions to give a `F33f`_`[closed form`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Closed-form_expression]`_`f formula for `*Un`* without breaking down this definition further to handle the cases of vertical versus horizontal dominoes. Notice that the ordinary generating functions for our two sequences correspond to the series: U ( z ) = 1 + 3 z 2 + 11 z 4 + 41 z 6 + ⋯ ⋯ , V ( z ) = z + 4 z 3 + 15 z 5 + 56 z 7 + ⋯ ⋯ . {\\displaystyle {\\begin{aligned}U(z)=1+3z^{2}+11z^{4}+41z^{6}+\\cdots ,\\\\V(z)=z+4z^{3}+15z^{5}+56z^{7}+\\cdots .\\end{aligned}}}
If we consider the possible configurations that can be given starting from the left edge of the 3-by-n rectangle, we are able to express the following mutually dependent, or `*mutually recursive`*, recurrence relations for our two sequences when `*n`* ≥ 2 defined as above where `*U`*0 = 1, `*U`*1 = 0, `*V`*0 = 0, and `*V`*1 = 1: U n = 2 V n − − 1 + U n − − 2 V n = U n − − 1 + V n − − 2 . {\\displaystyle {\\begin{aligned}U_{n}&=2V_{n-1}+U_{n-2}\\\\V_{n}&=U_{n-1}+V_{n-2}.\\end{aligned}}}
Since we have that for all integers `*m`* ≥ 0, the index-shifted generating functions satisfy`:cite-ref-23[`F5bf`_`[note 1`#cite-note-23]`_`f] z m G ( z ) = ∑ ∑ n = m ∞ ∞ g n − − m z n , {\\displaystyle z^{m}G(z)=\\sum _{n=m}^{\\infty }g_{n-m}z^{n}\\,,} we can use the initial conditions specified above and the previous two recurrence relations to see that we have the next two equations relating the generating functions for these sequences given by U ( z ) = 2 z V ( z ) + z 2 U ( z ) + 1 V ( z ) = z U ( z ) + z 2 V ( z ) = z 1 − − z 2 U ( z ) , {\\displaystyle {\\begin{aligned}U(z)&=2zV(z)+z^{2}U(z)+1\\\\V(z)&=zU(z)+z^{2}V(z)={\\frac {z}{1-z^{2}}}U(z),\\end{aligned}}} which then implies by solving the system of equations (and this is the particular trick to our method here) that U ( z ) = 1 − − z 2 1 − − 4 z 2 + z 4 = 1 3 − − 3 ⋅ ⋅ 1 1 − − ( 2 + 3 ) z 2 + 1 3 + 3 ⋅ ⋅ 1 1 − − ( 2 − − 3 ) z 2 . {\\displaystyle U(z)={\\frac {1-z^{2}}{1-4z^{2}+z^{4}}}={\\frac {1}{3-{\\sqrt {3}}}}\\cdot {\\frac {1}{1-\\left(2+{\\sqrt {3}}\\right)z^{2}}}+{\\frac {1}{3+{\\sqrt {3}}}}\\cdot {\\frac {1}{1-\\left(2-{\\sqrt {3}}\\right)z^{2}}}.}
Thus by performing algebraic simplifications to the sequence resulting from the second partial fractions expansions of the generating function in the previous equation, we find that `*U`*2`*n`* + 1 ≡ 0 and that U 2 n = ⌈ ( 2 + 3 ) n 3 − − 3 ⌉ , {\\displaystyle U_{2n}=\\left\\lceil {\\frac {\\left(2+{\\sqrt {3}}\\right)^{n}}{3-{\\sqrt {3}}}}\\right\\rceil \\,,} for all integers `*n`* ≥ 0. We also note that the same shifted generating function technique applied to the second-order `F33f`_`[recurrence`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Recurrence_relation]`_`f for the `F33f`_`[Fibonacci numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Fibonacci_numbers]`_`f is the prototypical example of using generating functions to solve recurrence relations in one variable already covered, or at least hinted at, in the subsection on `F33f`_`[rational functions`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Rational_functions]`_`f given above.
>>>Convolution (Cauchy products)
A discrete `*convolution`* of the terms in two formal power series turns a product of generating functions into a generating function enumerating a convolved sum of the original sequence terms (see `F33f`_`[Cauchy product`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cauchy_product]`_`f).
1. Consider `*A`*(`*z`*) and `*B`*(`*z`*) are ordinary generating functions. C ( z ) = A ( z ) B ( z ) ⇔ ⇔ [ z n ] C ( z ) = ∑ ∑ k = 0 n a k b n − − k {\\displaystyle C(z)=A(z)B(z)\\Leftrightarrow [z^{n}]C(z)=\\sum _{k=0}^{n}{a_{k}b_{n-k}}}
2. Consider `*A`*(`*z`*) and `*B`*(`*z`*) are exponential generating functions. C ( z ) = A ( z ) B ( z ) ⇔ ⇔ [ z n n ! ] C ( z ) = ∑ ∑ k = 0 n ( n k ) a k b n − − k {\\displaystyle C(z)=A(z)B(z)\\Leftrightarrow \\left[{\\frac {z^{n}}{n!}}\\right]C(z)=\\sum _{k=0}^{n}{\\binom {n}{k}}a_{k}b_{n-k}}
3. Consider the triply convolved sequence resulting from the product of three ordinary generating functions C ( z ) = F ( z ) G ( z ) H ( z ) ⇔ ⇔ [ z n ] C ( z ) = ∑ ∑ j + k + l = n f j g k h l {\\displaystyle C(z)=F(z)G(z)H(z)\\Leftrightarrow [z^{n}]C(z)=\\sum _{j+k+l=n}f_{j}g_{k}h_{l}}
4. Consider the m-fold convolution of a sequence with itself for some positive integer `*m`* ≥ 1 (see the example below for an application) C ( z ) = G ( z ) m ⇔ ⇔ [ z n ] C ( z ) = ∑ ∑ k 1 + k 2 + ⋯ ⋯ + k m = n g k 1 g k 2 ⋯ ⋯ g k m {\\displaystyle C(z)=G(z)^{m}\\Leftrightarrow [z^{n}]C(z)=\\sum _{k_{1}+k_{2}+\\cdots +k_{m}=n}g_{k_{1}}g_{k_{2}}\\cdots g_{k_{m}}}
Multiplication of generating functions, or convolution of their underlying sequences, can correspond to a notion of independent events in certain counting and probability scenarios. For example, if we adopt the notational convention that the `F33f`_`[probability generating function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Probability_generating_function]`_`f, or `*pgf`*, of a random variable Z is denoted by `*GZ`*(`*z`*), then we can show that for any two random variables `:cite-ref-24[`F5bf`_`[23`#cite-note-24]`_`f] G X + Y ( z ) = G X ( z ) G Y ( z ) , {\\displaystyle G_{X+Y}(z)=G_{X}(z)G_{Y}(z)\\,,} if X and Y are independent.
>>>>Example: The money-changing problem
The number of ways to pay `*n`* ≥ 0 cents in coin denominations of values in the set {1, 5, 10, 25, 50} (i.e., in pennies, nickels, dimes, quarters, and half dollars, respectively), where we distinguish instances based upon the total number of each coin but not upon the order in which the coins are presented, is given by the ordinary generating function 1 1 − − z 1 1 − − z 5 1 1 − − z 10 1 1 − − z 25 1 1 − − z 50 . {\\displaystyle {\\frac {1}{1-z}}{\\frac {1}{1-z^{5}}}{\\frac {1}{1-z^{10}}}{\\frac {1}{1-z^{25}}}{\\frac {1}{1-z^{50}}}\\,.} When we also distinguish based upon the order in which the coins are presented (e.g., one penny then one nickel is distinct from one nickel then one penny), the ordinary generating function is 1 1 − − z − − z 5 − − z 10 − − z 25 − − z 50 . {\\displaystyle {\\frac {1}{1-z-z^{5}-z^{10}-z^{25}-z^{50}}}\\,.}
If we allow the n cents to be paid in coins of `*any`* positive integer denomination, we arrive at the `F33f`_`[partition function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Partition_function_(mathematics)]`_`f ordinary generating function expanded by an infinite `F33f`_`[q-Pochhammer symbol`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Q-Pochhammer_symbol]`_`f product, ∏ ∏ n = 1 ∞ ∞ ( 1 − − z n ) − − 1 . {\\displaystyle \\prod _{n=1}^{\\infty }\\left(1-z^{n}\\right)^{-1}\\,.} When the order of the coins matters, the ordinary generating function is 1 1 − − ∑ ∑ n = 1 ∞ ∞ z n = 1 − − z 1 − − 2 z . {\\displaystyle {\\frac {1}{1-\\sum _{n=1}^{\\infty }z^{n}}}={\\frac {1-z}{1-2z}}\\,.}
>>>>Example: Generating function for the Catalan numbers
An example where convolutions of generating functions are useful allows us to solve for a specific closed-form function representing the ordinary generating function for the `F33f`_`[Catalan numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Catalan_numbers]`_`f, `*Cn`*. In particular, this sequence has the combinatorial interpretation as being the number of ways to insert parentheses into the product `*x`*0 · `*x`*1 ·⋯· `*xn`* so that the order of multiplication is completely specified. For example, `*C`*2 = 2 which corresponds to the two expressions `*x`*0 · (`*x`*1 · `*x`*2) and (`*x`*0 · `*x`*1) · `*x`*2. It follows that the sequence satisfies a recurrence relation given by C n = ∑ ∑ k = 0 n − − 1 C k C n − − 1 − − k + δ δ n , 0 = C 0 C n − − 1 + C 1 C n − − 2 + ⋯ ⋯ + C n − − 1 C 0 + δ δ n , 0 , n ≥ ≥ 0 , {\\displaystyle C_{n}=\\sum _{k=0}^{n-1}C_{k}C_{n-1-k}+\\delta _{n,0}=C_{0}C_{n-1}+C_{1}C_{n-2}+\\cdots +C_{n-1}C_{0}+\\delta _{n,0}\\,,\\quad n\\geq 0\\,,} and so has a corresponding convolved generating function, `*C`*(`*z`*), satisfying C ( z ) = z ⋅ ⋅ C ( z ) 2 + 1 . {\\displaystyle C(z)=z\\cdot C(z)^{2}+1\\,.}
Since `*C`*(0) = 1 ≠ ∞, we then arrive at a formula for this generating function given by C ( z ) = 1 − − 1 − − 4 z 2 z = ∑ ∑ n = 0 ∞ ∞ 1 n + 1 ( 2 n n ) z n . {\\displaystyle C(z)={\\frac {1-{\\sqrt {1-4z}}}{2z}}=\\sum _{n=0}^{\\infty }{\\frac {1}{n+1}}{\\binom {2n}{n}}z^{n}\\,.}
Note that the first equation implicitly defining `*C`*(`*z`*) above implies that C ( z ) = 1 1 − − z ⋅ ⋅ C ( z ) , {\\displaystyle C(z)={\\frac {1}{1-z\\cdot C(z)}}\\,,} which then leads to another "simple" (of form) continued fraction expansion of this generating function.
>>>>Example: Spanning trees of fans and convolutions of convolutions
A `*fan of order n`* is defined to be a graph on the vertices {0, 1, ..., `*n`*} with 2`*n`* − 1 edges connected according to the following rules: Vertex 0 is connected by a single edge to each of the other n vertices, and vertex k {\\displaystyle k} is connected by a single edge to the next vertex `*k`* + 1 for all 1 ≤ `*k`* < `*n`*.`:cite-ref-25[`F5bf`_`[24`#cite-note-25]`_`f] There is one fan of order one, three fans of order two, eight fans of order three, and so on. A `F33f`_`[spanning tree`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Spanning_tree]`_`f is a subgraph of a graph which contains all of the original vertices and which contains enough edges to make this subgraph connected, but not so many edges that there is a cycle in the subgraph. We ask how many spanning trees `*fn`* of a fan of order n are possible for each `*n`* ≥ 1.
As an observation, we may approach the question by counting the number of ways to join adjacent sets of vertices. For example, when `*n`* = 4, we have that `*f`*4 = 4 + 3 · 1 + 2 · 2 + 1 · 3 + 2 · 1 · 1 + 1 · 2 · 1 + 1 · 1 · 2 + 1 · 1 · 1 · 1 = 21, which is a sum over the m-fold convolutions of the sequence `*gn`* = `*n`* = [`*zn`*] `*z`*/(1 − `*z`*)2 for `*m`* ≔ 1, 2, 3, 4. More generally, we may write a formula for this sequence as f n = ∑ ∑ m > 0 ∑ ∑ k 1 + k 2 + ⋯ ⋯ + k m = n k 1 , k 2 , … … , k m > 0 g k 1 g k 2 ⋯ ⋯ g k m , {\\displaystyle f_{n}=\\sum _{m>0}\\sum _{\\scriptstyle k_{1}+k_{2}+\\cdots +k_{m}=n \\atop \\scriptstyle k_{1},k_{2},\\ldots ,k_{m}>0}g_{k_{1}}g_{k_{2}}\\cdots g_{k_{m}}\\,,} from which we see that the ordinary generating function for this sequence is given by the next sum of convolutions as F ( z ) = G ( z ) + G ( z ) 2 + G ( z ) 3 + ⋯ ⋯ = G ( z ) 1 − − G ( z ) = z ( 1 − − z ) 2 − − z = z 1 − − 3 z + z 2 , {\\displaystyle F(z)=G(z)+G(z)^{2}+G(z)^{3}+\\cdots ={\\frac {G(z)}{1-G(z)}}={\\frac {z}{(1-z)^{2}-z}}={\\frac {z}{1-3z+z^{2}}}\\,,} from which we are able to extract an exact formula for the sequence by taking the `F33f`_`[partial fraction expansion`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Partial_fraction_expansion]`_`f of the last generating function.
>>>Implicit generating functions and the Lagrange inversion formula
One often encounters generating functions specified by a functional equation, instead of an explicit specification. For example, the generating function `*T(z)`* for the number of binary trees on `*n`* nodes (leaves included) satisfies
T ( z ) = z ( 1 + T ( z ) 2 ) {\\displaystyle T(z)=z\\left(1+T(z)^{2}\\right)}
The `F33f`_`[Lagrange inversion theorem`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Lagrange_inversion_theorem]`_`f is a tool used to explicitly evaluate solutions to such equations.
`!Lagrange inversion formula`!—Let ϕ ϕ ( z ) ∈ ∈ C [ [ z ] ] {\\textstyle \\phi (z)\\in C[[z]]} be a formal power series with a non-zero constant term. Then the functional equation T ( z ) = z ϕ ϕ ( T ( z ) ) {\\displaystyle T(z)=z\\phi (T(z))} admits a unique solution in T ( z ) ∈ ∈ C [ [ z ] ] {\\textstyle T(z)\\in C[[z]]} , which satisfies
[ z n ] T ( z ) = [ z n − − 1 ] 1 n ( ϕ ϕ ( z ) ) n {\\displaystyle [z^{n}]T(z)=[z^{n-1}]{\\frac {1}{n}}(\\phi (z))^{n}}
where the notation [ z n ] F ( z ) {\\displaystyle [z^{n}]F(z)} returns the coefficient of z n {\\displaystyle z^{n}} in F ( z ) {\\displaystyle F(z)} .
Applying the above theorem to our functional equation yields (with ϕ ϕ ( z ) = 1 + z 2 {\\textstyle \\phi (z)=1+z^{2}} ):
[ z n ] T ( z ) = [ z n − − 1 ] 1 n ( 1 + z 2 ) n {\\displaystyle [z^{n}]T(z)=[z^{n-1}]{\\frac {1}{n}}(1+z^{2})^{n}}
Via the `F33f`_`[binomial theorem`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_theorem]`_`f expansion, for even n {\\displaystyle n} , the formula returns 0 {\\displaystyle 0} . This is expected as one can prove that the number of leaves of a `F33f`_`[binary tree`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binary_tree]`_`f are one more than the number of its internal nodes, so the total sum should always be an odd number. For odd n {\\displaystyle n} , however, we get
[ z n − − 1 ] 1 n ( 1 + z 2 ) n = 1 n ( n n + 1 2 ) {\\displaystyle [z^{n-1}]{\\frac {1}{n}}(1+z^{2})^{n}={\\frac {1}{n}}{\\dbinom {n}{\\frac {n+1}{2}}}}
The expression becomes much neater if we let n {\\displaystyle n} be the number of internal nodes: Now the expression just becomes the n {\\displaystyle n} th Catalan number.
>>>Introducing a free parameter (snake oil method)
Sometimes the sum `*sn`* is complicated, and it is not always easy to evaluate. The "Free Parameter" method is another method (called "snake oil" by H. Wilf) to evaluate these sums.
Both methods discussed so far have n as limit in the summation. When n does not appear explicitly in the summation, we may consider n as a "free" parameter and treat `*sn`* as a coefficient of `*F`*(`*z`*) = Σ `*sn`* `*zn`*, change the order of the summations on n and k, and try to compute the inner sum.
For example, if we want to compute s n = ∑ ∑ k = 0 ∞ ∞ ( n + k m + 2 k ) ( 2 k k ) ( − − 1 ) k k + 1 , m , n ∈ ∈ N 0 , {\\displaystyle s_{n}=\\sum _{k=0}^{\\infty }{{\\binom {n+k}{m+2k}}{\\binom {2k}{k}}{\\frac {(-1)^{k}}{k+1}}}\\,,\\quad m,n\\in \\mathbb {N} _{0}\\,,} we can treat n as a "free" parameter, and set F ( z ) = ∑ ∑ n = 0 ∞ ∞ ( ∑ ∑ k = 0 ∞ ∞ ( n + k m + 2 k ) ( 2 k k ) ( − − 1 ) k k + 1 ) z n . {\\displaystyle F(z)=\\sum _{n=0}^{\\infty }{\\left(\\sum _{k=0}^{\\infty }{{\\binom {n+k}{m+2k}}{\\binom {2k}{k}}{\\frac {(-1)^{k}}{k+1}}}\\right)}z^{n}\\,.}
Interchanging summation ("snake oil") gives F ( z ) = ∑ ∑ k = 0 ∞ ∞ ( 2 k k ) ( − − 1 ) k k + 1 z − − k ∑ ∑ n = 0 ∞ ∞ ( n + k m + 2 k ) z n + k . {\\displaystyle F(z)=\\sum _{k=0}^{\\infty }{{\\binom {2k}{k}}{\\frac {(-1)^{k}}{k+1}}z^{-k}}\\sum _{n=0}^{\\infty }{{\\binom {n+k}{m+2k}}z^{n+k}}\\,.}
Now the inner sum is `*z`*`*m`* + 2`*k`*/(1 − `*z`*)`*m`* + 2`*k`* + 1. Thus F ( z ) = z m ( 1 − − z ) m + 1 ∑ ∑ k = 0 ∞ ∞ 1 k + 1 ( 2 k k ) ( − − z ( 1 − − z ) 2 ) k = z m ( 1 − − z ) m + 1 ∑ ∑ k = 0 ∞ ∞ C k ( − − z ( 1 − − z ) 2 ) k where C k = k th Catalan number = z m ( 1 − − z ) m + 1 1 − − 1 + 4 z ( 1 − − z ) 2 − − 2 z ( 1 − − z ) 2 = − − z m − − 1 2 ( 1 − − z ) m − − 1 ( 1 − − 1 + z 1 − − z ) = z m ( 1 − − z ) m = z z m − − 1 ( 1 − − z ) m . {\\displaystyle {\\begin{aligned}F(z)&={\\frac {z^{m}}{(1-z)^{m+1}}}\\sum _{k=0}^{\\infty }{{\\frac {1}{k+1}}{\\binom {2k}{k}}\\left({\\frac {-z}{(1-z)^{2}}}\\right)^{k}}\\\\[4px]&={\\frac {z^{m}}{(1-z)^{m+1}}}\\sum _{k=0}^{\\infty }{C_{k}\\left({\\frac {-z}{(1-z)^{2}}}\\right)^{k}}&{\\text{where }}C_{k}=k{\\text{th Catalan number}}\\\\[4px]&={\\frac {z^{m}}{(1-z)^{m+1}}}{\\frac {1-{\\sqrt {1+{\\frac {4z}{(1-z)^{2}}}}}}{\\frac {-2z}{(1-z)^{2}}}}\\\\[4px]&={\\frac {-z^{m-1}}{2(1-z)^{m-1}}}\\left(1-{\\frac {1+z}{1-z}}\\right)\\\\[4px]&={\\frac {z^{m}}{(1-z)^{m}}}=z{\\frac {z^{m-1}}{(1-z)^{m}}}\\,.\\end{aligned}}}
Then we obtain s n = { ( n − − 1 m − − 1 ) for m ≥ ≥ 1 , [ n = 0 ] for m = 0 . {\\displaystyle s_{n}={\\begin{cases}\\displaystyle {\\binom {n-1}{m-1}}&{\\text{for }}m\\geq 1\\,,\\\\{}[n=0]&{\\text{for }}m=0\\,.\\end{cases}}}
It is instructive to use the same method again for the sum, but this time take m as the free parameter instead of n. We thus set G ( z ) = ∑ ∑ m = 0 ∞ ∞ ( ∑ ∑ k = 0 ∞ ∞ ( n + k m + 2 k ) ( 2 k k ) ( − − 1 ) k k + 1 ) z m . {\\displaystyle G(z)=\\sum _{m=0}^{\\infty }\\left(\\sum _{k=0}^{\\infty }{\\binom {n+k}{m+2k}}{\\binom {2k}{k}}{\\frac {(-1)^{k}}{k+1}}\\right)z^{m}\\,.}
Interchanging summation ("snake oil") gives G ( z ) = ∑ ∑ k = 0 ∞ ∞ ( 2 k k ) ( − − 1 ) k k + 1 z − − 2 k ∑ ∑ m = 0 ∞ ∞ ( n + k m + 2 k ) z m + 2 k . {\\displaystyle G(z)=\\sum _{k=0}^{\\infty }{\\binom {2k}{k}}{\\frac {(-1)^{k}}{k+1}}z^{-2k}\\sum _{m=0}^{\\infty }{\\binom {n+k}{m+2k}}z^{m+2k}\\,.}
Now the inner sum is (1 + `*z`*)`*n`* + `*k`*. Thus G ( z ) = ( 1 + z ) n ∑ ∑ k = 0 ∞ ∞ 1 k + 1 ( 2 k k ) ( − − ( 1 + z ) z 2 ) k = ( 1 + z ) n ∑ ∑ k = 0 ∞ ∞ C k ( − − ( 1 + z ) z 2 ) k where C k = k th Catalan number = ( 1 + z ) n 1 − − 1 + 4 ( 1 + z ) z 2 − − 2 ( 1 + z ) z 2 = ( 1 + z ) n z 2 − − z z 2 + 4 + 4 z − − 2 ( 1 + z ) = ( 1 + z ) n z 2 − − z ( z + 2 ) − − 2 ( 1 + z ) = ( 1 + z ) n − − 2 z − − 2 ( 1 + z ) = z ( 1 + z ) n − − 1 . {\\displaystyle {\\begin{aligned}G(z)&=(1+z)^{n}\\sum _{k=0}^{\\infty }{\\frac {1}{k+1}}{\\binom {2k}{k}}\\left({\\frac {-(1+z)}{z^{2}}}\\right)^{k}\\\\[4px]&=(1+z)^{n}\\sum _{k=0}^{\\infty }C_{k}\\,\\left({\\frac {-(1+z)}{z^{2}}}\\right)^{k}&{\\text{where }}C_{k}=k{\\text{th Catalan number}}\\\\[4px]&=(1+z)^{n}\\,{\\frac {1-{\\sqrt {1+{\\frac {4(1+z)}{z^{2}}}}}}{\\frac {-2(1+z)}{z^{2}}}}\\\\[4px]&=(1+z)^{n}\\,{\\frac {z^{2}-z{\\sqrt {z^{2}+4+4z}}}{-2(1+z)}}\\\\[4px]&=(1+z)^{n}\\,{\\frac {z^{2}-z(z+2)}{-2(1+z)}}\\\\[4px]&=(1+z)^{n}\\,{\\frac {-2z}{-2(1+z)}}=z(1+z)^{n-1}\\,.\\end{aligned}}}
Thus we obtain s n = [ z m ] z ( 1 + z ) n − − 1 = [ z m − − 1 ] ( 1 + z ) n − − 1 = ( n − − 1 m − − 1 ) , {\\displaystyle s_{n}=\\left[z^{m}\\right]z(1+z)^{n-1}=\\left[z^{m-1}\\right](1+z)^{n-1}={\\binom {n-1}{m-1}}\\,,} for `*m`* ≥ 1 as before.
>>>Generating functions prove congruences
We say that two generating functions (power series) are congruent modulo m, written `*A`*(`*z`*) ≡ `*B`*(`*z`*) (mod `*m`*) if their coefficients are congruent modulo m for all `*n`* ≥ 0, i.e., `*an`* ≡ `*bn`* (mod `*m`*) for all relevant cases of the integers n (note that we need not assume that m is an integer here—it may very well be polynomial-valued in some indeterminate x, for example). If the "simpler" right-hand-side generating function, `*B`*(`*z`*), is a rational function of z, then the form of this sequence suggests that the sequence is `F33f`_`[eventually periodic`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Periodic_function]`_`f modulo fixed particular cases of integer-valued `*m`* ≥ 2. For example, we can prove that the `F33f`_`[Euler numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Euler_numbers]`_`f, ⟨ ⟨ E n ⟩ ⟩ = ⟨ ⟨ 1 , 1 , 5 , 61 , 1385 , … … ⟩ ⟩ ⟼ ⟼ ⟨ ⟨ 1 , 1 , 2 , 1 , 2 , 1 , 2 , … … ⟩ ⟩ ( mod 3 ) , {\\displaystyle \\langle E_{n}\\rangle =\\langle 1,1,5,61,1385,\\ldots \\rangle \\longmapsto \\langle 1,1,2,1,2,1,2,\\ldots \\rangle {\\pmod {3}}\\,,} satisfy the following congruence modulo 3:`:cite-ref-26[`F5bf`_`[25`#cite-note-26]`_`f] ∑ ∑ n = 0 ∞ ∞ E n z n = 1 − − z 2 1 + z 2 ( mod 3 ) . {\\displaystyle \\sum _{n=0}^{\\infty }E_{n}z^{n}={\\frac {1-z^{2}}{1+z^{2}}}{\\pmod {3}}\\,.}
One useful method of obtaining congruences for sequences enumerated by special generating functions modulo any integers (i.e., not only prime powers `*pk`*) is given in the section on continued fraction representations of (even non-convergent) ordinary generating functions by J-fractions above. We cite one particular result related to generating series expanded through a representation by continued fraction from Lando's `*Lectures on Generating Functions`* as follows:
`!Theorem: congruences for series generated by expansions of continued fractions`!—Suppose that the generating function `*A`*(`*z`*) is represented by an infinite `F33f`_`[continued fraction`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Continued_fraction]`_`f of the form A ( z ) = 1 1 − − c 1 z − − p 1 z 2 1 − − c 2 z − − p 2 z 2 1 − − c 3 z − − ⋱ ⋱ {\\displaystyle A(z)={\\cfrac {1}{1-c_{1}z-{\\cfrac {p_{1}z^{2}}{1-c_{2}z-{\\cfrac {p_{2}z^{2}}{1-c_{3}z-{\\ddots }}}}}}}} and that `*Ap`*(`*z`*) denotes the pth convergent to this continued fraction expansion defined such that `*an`* = [`*zn`*] `*Ap`*(`*z`*) for all 0 ≤ `*n`* < 2`*p`*. Then:
1. the function `*Ap`*(`*z`*) is rational for all `*p`* ≥ 2 where we assume that one of divisibility criteria of `*p`* | `*p`*1, `*p`*1`*p`*2, `*p`*1`*p`*2`*p`*3 is met, that is, `*p`* | `*p`*1`*p`*2⋯`*p`*`*k`* for some `*k`* ≥ 1; and
2. if the integer p divides the product `*p`*1`*p`*2⋯`*p`*`*k`*, then we have `*A`*(`*z`*) ≡ `*Ak`*(`*z`*) (mod `*p`*).
Generating functions also have other uses in proving congruences for their coefficients. We cite the next two specific examples deriving special case congruences for the `F33f`_`[Stirling numbers of the first kind`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers_of_the_first_kind]`_`f and for the `F33f`_`[partition function p(n)`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Partition_function_(number_theory)]`_`f which show the versatility of generating functions in tackling problems involving `F33f`_`[integer sequences`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Integer_sequences]`_`f.
>>>>The Stirling numbers modulo small integers
The `F33f`_`[main article`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers_of_the_first_kind]`_`f on the Stirling numbers generated by the finite products S n ( x ) := ∑ ∑ k = 0 n [ n k ] x k = x ( x + 1 ) ( x + 2 ) ⋯ ⋯ ( x + n − − 1 ) , n ≥ ≥ 1 , {\\displaystyle S_{n}(x):=\\sum _{k=0}^{n}{\\begin{bmatrix}n\\\\k\\end{bmatrix}}x^{k}=x(x+1)(x+2)\\cdots (x+n-1)\\,,\\quad n\\geq 1\\,,}
provides an overview of the congruences for these numbers derived strictly from properties of their generating function as in Section 4.6 of Wilf's stock reference `*Generatingfunctionology`*. We repeat the basic argument and notice that when reduces modulo 2, these finite product generating functions each satisfy
S n ( x ) = [ x ( x + 1 ) ] ⋅ ⋅ [ x ( x + 1 ) ] ⋯ ⋯ = x ⌈ n 2 ⌉ ( x + 1 ) ⌊ n 2 ⌋ , {\\displaystyle S_{n}(x)=[x(x+1)]\\cdot [x(x+1)]\\cdots =x^{\\left\\lceil {\\frac {n}{2}}\\right\\rceil }(x+1)^{\\left\\lfloor {\\frac {n}{2}}\\right\\rfloor }\\,,}
which implies that the parity of these `F33f`_`[Stirling numbers`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_numbers]`_`f matches that of the binomial coefficient
[ n k ] ≡ ≡ ( ⌊ n 2 ⌋ k − − ⌈ n 2 ⌉ ) ( mod 2 ) , {\\displaystyle {\\begin{bmatrix}n\\\\k\\end{bmatrix}}\\equiv {\\binom {\\left\\lfloor {\\frac {n}{2}}\\right\\rfloor }{k-\\left\\lceil {\\frac {n}{2}}\\right\\rceil }}{\\pmod {2}}\\,,}
and consequently shows that [`*n`*
`*k`*] is even whenever `*k`* < ⌊ `*n`*/2 ⌋.
Similarly, we can reduce the right-hand-side products defining the Stirling number generating functions modulo 3 to obtain slightly more complicated expressions providing that [ n m ] ≡ ≡ [ x m ] ( x ⌈ n 3 ⌉ ( x + 1 ) ⌈ n − − 1 3 ⌉ ( x + 2 ) ⌊ n 3 ⌋ ) ( mod 3 ) ≡ ≡ ∑ ∑ k = 0 m ( ⌈ n − − 1 3 ⌉ k ) ( ⌊ n 3 ⌋ m − − k − − ⌈ n 3 ⌉ ) × × 2 ⌈ n 3 ⌉ + ⌊ n 3 ⌋ − − ( m − − k ) ( mod 3 ) . {\\displaystyle {\\begin{aligned}{\\begin{bmatrix}n\\\\m\\end{bmatrix}}&\\equiv [x^{m}]\\left(x^{\\left\\lceil {\\frac {n}{3}}\\right\\rceil }(x+1)^{\\left\\lceil {\\frac {n-1}{3}}\\right\\rceil }(x+2)^{\\left\\lfloor {\\frac {n}{3}}\\right\\rfloor }\\right)&&{\\pmod {3}}\\\\&\\equiv \\sum _{k=0}^{m}{\\begin{pmatrix}\\left\\lceil {\\frac {n-1}{3}}\\right\\rceil \\\\k\\end{pmatrix}}{\\begin{pmatrix}\\left\\lfloor {\\frac {n}{3}}\\right\\rfloor \\\\m-k-\\left\\lceil {\\frac {n}{3}}\\right\\rceil \\end{pmatrix}}\\times 2^{\\left\\lceil {\\frac {n}{3}}\\right\\rceil +\\left\\lfloor {\\frac {n}{3}}\\right\\rfloor -(m-k)}&&{\\pmod {3}}\\,.\\end{aligned}}}
>>>>Congruences for the partition function
In this example, we pull in some of the machinery of infinite products whose power series expansions generate the expansions of many special functions and enumerate partition functions. In particular, we recall that `*the`* `F33f`_`[partition function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Partition_function_(number_theory)]`_`f `*p`*(`*n`*) is generated by the reciprocal infinite `F33f`_`[q-Pochhammer symbol`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Q-Pochhammer_symbol]`_`f product (or z-Pochhammer product as the case may be) given by ∑ ∑ n = 0 ∞ ∞ p ( n ) z n = 1 ( 1 − − z ) ( 1 − − z 2 ) ( 1 − − z 3 ) ⋯ ⋯ = 1 + z + 2 z 2 + 3 z 3 + 5 z 4 + 7 z 5 + 11 z 6 + ⋯ ⋯ . {\\displaystyle {\\begin{aligned}\\sum _{n=0}^{\\infty }p(n)z^{n}&={\\frac {1}{\\left(1-z\\right)\\left(1-z^{2}\\right)\\left(1-z^{3}\\right)\\cdots }}\\\\[4pt]&=1+z+2z^{2}+3z^{3}+5z^{4}+7z^{5}+11z^{6}+\\cdots .\\end{aligned}}}
This partition function satisfies many known `F33f`_`[congruence properties`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ramanujan's_congruences]`_`f, which notably include the following results though there are still many open questions about the forms of related integer congruences for the function:`:cite-ref-27[`F5bf`_`[26`#cite-note-27]`_`f] p ( 5 m + 4 ) ≡ ≡ 0 ( mod 5 ) p ( 7 m + 5 ) ≡ ≡ 0 ( mod 7 ) p ( 11 m + 6 ) ≡ ≡ 0 ( mod 11 ) p ( 25 m + 24 ) ≡ ≡ 0 ( mod 5 2 ) . {\\displaystyle {\\begin{aligned}p(5m+4)&\\equiv 0{\\pmod {5}}\\\\p(7m+5)&\\equiv 0{\\pmod {7}}\\\\p(11m+6)&\\equiv 0{\\pmod {11}}\\\\p(25m+24)&\\equiv 0{\\pmod {5^{2}}}\\,.\\end{aligned}}}
We show how to use generating functions and manipulations of congruences for formal power series to give a highly elementary proof of the first of these congruences listed above.
First, we observe that in the binomial coefficient generating function 1 ( 1 − − z ) 5 = ∑ ∑ i = 0 ∞ ∞ ( 4 + i 4 ) z i , {\\displaystyle {\\frac {1}{(1-z)^{5}}}=\\sum _{i=0}^{\\infty }{\\binom {4+i}{4}}z^{i}\\,,} all of the coefficients are divisible by 5 except for those which correspond to the powers 1, `*z`*5, `*z`*10, ... and moreover in those cases the remainder of the coefficient is 1 modulo 5. Thus, 1 ( 1 − − z ) 5 ≡ ≡ 1 1 − − z 5 ( mod 5 ) , {\\displaystyle {\\frac {1}{(1-z)^{5}}}\\equiv {\\frac {1}{1-z^{5}}}{\\pmod {5}}\\,,} or equivalently 1 − − z 5 ( 1 − − z ) 5 ≡ ≡ 1 ( mod 5 ) . {\\displaystyle {\\frac {1-z^{5}}{(1-z)^{5}}}\\equiv 1{\\pmod {5}}\\,.} It follows that ( 1 − − z 5 ) ( 1 − − z 10 ) ( 1 − − z 15 ) ⋯ ⋯ ( ( 1 − − z ) ( 1 − − z 2 ) ( 1 − − z 3 ) ⋯ ⋯ ) 5 ≡ ≡ 1 ( mod 5 ) . {\\displaystyle {\\frac {\\left(1-z^{5}\\right)\\left(1-z^{10}\\right)\\left(1-z^{15}\\right)\\cdots }{\\left((1-z)\\left(1-z^{2}\\right)\\left(1-z^{3}\\right)\\cdots \\right)^{5}}}\\equiv 1{\\pmod {5}}\\,.}
Using the infinite product expansions of z ⋅ ⋅ ( 1 − − z 5 ) ( 1 − − z 10 ) ⋯ ⋯ ( 1 − − z ) ( 1 − − z 2 ) ⋯ ⋯ = z ⋅ ⋅ ( ( 1 − − z ) ( 1 − − z 2 ) ⋯ ⋯ ) 4 × × ( 1 − − z 5 ) ( 1 − − z 10 ) ⋯ ⋯ ( ( 1 − − z ) ( 1 − − z 2 ) ⋯ ⋯ ) 5 , {\\displaystyle z\\cdot {\\frac {\\left(1-z^{5}\\right)\\left(1-z^{10}\\right)\\cdots }{\\left(1-z\\right)\\left(1-z^{2}\\right)\\cdots }}=z\\cdot \\left((1-z)\\left(1-z^{2}\\right)\\cdots \\right)^{4}\\times {\\frac {\\left(1-z^{5}\\right)\\left(1-z^{10}\\right)\\cdots }{\\left(\\left(1-z\\right)\\left(1-z^{2}\\right)\\cdots \\right)^{5}}}\\,,} it can be shown that the coefficient of `*z`*5`*m`* + 5 in `*z`* · ((1 − `*z`*)(1 − `*z`*2)⋯)4 is divisible by 5 for all m.`:cite-ref-28[`F5bf`_`[27`#cite-note-28]`_`f] Finally, since ∑ ∑ n = 1 ∞ ∞ p ( n − − 1 ) z n = z ( 1 − − z ) ( 1 − − z 2 ) ⋯ ⋯ = z ⋅ ⋅ ( 1 − − z 5 ) ( 1 − − z 10 ) ⋯ ⋯ ( 1 − − z ) ( 1 − − z 2 ) ⋯ ⋯ × × ( 1 + z 5 + z 10 + ⋯ ⋯ ) ( 1 + z 10 + z 20 + ⋯ ⋯ ) ⋯ ⋯ {\\displaystyle {\\begin{aligned}\\sum _{n=1}^{\\infty }p(n-1)z^{n}&={\\frac {z}{(1-z)\\left(1-z^{2}\\right)\\cdots }}\\\\[6px]&=z\\cdot {\\frac {\\left(1-z^{5}\\right)\\left(1-z^{10}\\right)\\cdots }{(1-z)\\left(1-z^{2}\\right)\\cdots }}\\times \\left(1+z^{5}+z^{10}+\\cdots \\right)\\left(1+z^{10}+z^{20}+\\cdots \\right)\\cdots \\end{aligned}}} we may equate the coefficients of `*z`*5`*m`* + 5 in the previous equations to prove our desired congruence result, namely that `*p`*(5`*m`* + 4) ≡ 0 (mod 5) for all `*m`* ≥ 0.
>>>Transformations of generating functions
There are a number of transformations of generating functions that provide other applications (see the `F33f`_`[main article`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f). A transformation of a sequence's `*ordinary generating function`* (OGF) provides a method of converting the generating function for one sequence into a generating function enumerating another. These transformations typically involve integral formulas involving a sequence OGF (see `F33f`_`[integral transformations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f) or weighted sums over the higher-order derivatives of these functions (see `F33f`_`[derivative transformations`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f).
Generating function transformations can come into play when we seek to express a generating function for the sums s n := ∑ ∑ m = 0 n ( n m ) C n , m a m , {\\displaystyle s_{n}:=\\sum _{m=0}^{n}{\\binom {n}{m}}C_{n,m}a_{m},}
in the form of `*S`*(`*z`*) = `*g`*(`*z`*) `*A`*(`*f`*(`*z`*)) involving the original sequence generating function. For example, if the sums are s n := ∑ ∑ k = 0 ∞ ∞ ( n + k m + 2 k ) a k {\\displaystyle s_{n}:=\\sum _{k=0}^{\\infty }{\\binom {n+k}{m+2k}}a_{k}\\,} then the generating function for the modified sum expressions is given by`:cite-ref-29[`F5bf`_`[28`#cite-note-29]`_`f] S ( z ) = z m ( 1 − − z ) m + 1 A ( z ( 1 − − z ) 2 ) {\\displaystyle S(z)={\\frac {z^{m}}{(1-z)^{m+1}}}A\\left({\\frac {z}{(1-z)^{2}}}\\right)} (see also the `F33f`_`[binomial transform`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Binomial_transform]`_`f and the `F33f`_`[Stirling transform`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stirling_transform]`_`f).
There are also integral formulas for converting between a sequence's OGF, `*F`*(`*z`*), and its exponential generating function, or EGF, `*F̂`*(`*z`*), and vice versa given by F ( z ) = ∫ ∫ 0 ∞ ∞ F ^ ^ ( t z ) e − − t d t , F ^ ^ ( z ) = 1 2 π π ∫ ∫ − − π π π π F ( z e − − i ϑ ϑ ) e e i ϑ ϑ d ϑ ϑ , {\\displaystyle {\\begin{aligned}F(z)&=\\int _{0}^{\\infty }{\\hat {F}}(tz)e^{-t}\\,dt\\,,\\\\[4px]{\\hat {F}}(z)&={\\frac {1}{2\\pi }}\\int _{-\\pi }^{\\pi }F\\left(ze^{-i\\vartheta }\\right)e^{e^{i\\vartheta }}\\,d\\vartheta \\,,\\end{aligned}}}
provided that these integrals converge for appropriate values of z.
>>Tables of special generating functions
An initial listing of special mathematical series is found `F33f`_`[here`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=List_of_mathematical_series]`_`f. A number of useful and special sequence generating functions are found in Section 5.4 and 7.4 of `*Concrete Mathematics`* and in Section 2.5 of Wilf's `*Generatingfunctionology`*. Other special generating functions of note include the entries in the next table, which is by no means complete.`:cite-ref-30[`F5bf`_`[29`#cite-note-30]`_`f]
`t
| Formal power series | Generating-function formula | Notes |
|---|---|---|
| ∑ n = 0 ∞ ( m + n n ) ( H n + m − H m ) z n {\\displaystyle \\sum _{n=0}^{\\infty }{\\binom {m+n}{n}}\\left(H_{n+m}-H_{m}\\right)z^{n}} | 1 ( 1 − z ) m + 1 ln 1 1 − z {\\displaystyle {\\frac {1}{(1-z)^{m+1}}}\\ln {\\frac {1}{1-z}}} | H n {\\displaystyle H_{n}} is a first-order harmonic number |
| ∑ n = 0 ∞ B n z n n ! {\\displaystyle \\sum _{n=0}^{\\infty }B_{n}{\\frac {z^{n}}{n!}}} | z e z − 1 {\\displaystyle {\\frac {z}{e^{z}-1}}} | B n {\\displaystyle B_{n}} is a Bernoulli number |
| ∑ n = 0 ∞ F m n z n {\\displaystyle \\sum _{n=0}^{\\infty }F_{mn}z^{n}} | F m z 1 − ( F m − 1 + F m + 1 ) z + ( − 1 ) m z 2 {\\displaystyle {\\frac {F_{m}z}{1-(F_{m-1}+F_{m+1})z+(-1)^{m}z^{2}}}} | F n {\\displaystyle F_{n}} is a Fibonacci number and m ∈ Z + {\\displaystyle m\\in \\mathbb {Z} ^{+}} |
| ∑ n = 0 ∞ { n m } z n {\\displaystyle \\sum _{n=0}^{\\infty }\\left\\{{\\begin{matrix}n\\\\m\\end{matrix}}\\right\\}z^{n}} | ( z − 1 ) − m ¯ = z m ( 1 − z ) ( 1 − 2 z ) ⋯ ( 1 − m z ) {\\displaystyle (z^{-1})^{\\overline {-m}}={\\frac {z^{m}}{(1-z)(1-2z)\\cdots (1-mz)}}} | x n ¯ {\\displaystyle x^{\\overline {n}}} denotes the rising factorial , or Pochhammer symbol and some integer m ≥ 0 {\\displaystyle m\\geq 0} |
| ∑ n = 0 ∞ [ n m ] z n {\\displaystyle \\sum _{n=0}^{\\infty }\\left[{\\begin{matrix}n\\\\m\\end{matrix}}\\right]z^{n}} | z m ¯ = z ( z + 1 ) ⋯ ( z + m − 1 ) {\\displaystyle z^{\\overline {m}}=z(z+1)\\cdots (z+m-1)} | |
| ∑ n = 1 ∞ ( − 1 ) n − 1 4 n ( 4 n − 2 ) B 2 n z 2 n ( 2 n ) ⋅ ( 2 n ) ! {\\displaystyle \\sum _{n=1}^{\\infty }{\\frac {(-1)^{n-1}4^{n}(4^{n}-2)B_{2n}z^{2n}}{(2n)\\cdot (2n)!}}} | ln tan ( z ) z {\\displaystyle \\ln {\\frac {\\tan(z)}{z}}} | |
| ∑ n = 0 ∞ ( 1 / 2 ) n ¯ z 2 n ( 2 n + 1 ) ⋅ n ! {\\displaystyle \\sum _{n=0}^{\\infty }{\\frac {(1/2)^{\\overline {n}}z^{2n}}{(2n+1)\\cdot n!}}} | z − 1 arcsin ( z ) {\\displaystyle z^{-1}\\arcsin(z)} | |
| ∑ n = 0 ∞ H n ( s ) z n {\\displaystyle \\sum _{n=0}^{\\infty }H_{n}^{(s)}z^{n}} | Li s ( z ) 1 − z {\\displaystyle {\\frac {\\operatorname {Li} _{s}(z)}{1-z}}} | Li s ( z ) {\\displaystyle \\operatorname {Li} _{s}(z)} is the polylogarithm function and H n ( s ) {\\displaystyle H_{n}^{(s)}} is a generalized harmonic number for ℜ ( s ) > 1 {\\displaystyle \\Re (s)>1} |
| ∑ n = 0 ∞ n m z n {\\displaystyle \\sum _{n=0}^{\\infty }n^{m}z^{n}} | ∑ 0 ≤ j ≤ m { m j } j ! ⋅ z j ( 1 − z ) j + 1 {\\displaystyle \\sum _{0\\leq j\\leq m}\\left\\{{\\begin{matrix}m\\\\j\\end{matrix}}\\right\\}{\\frac {j!\\cdot z^{j}}{(1-z)^{j+1}}}} | { n m } {\\displaystyle \\left\\{{\\begin{matrix}n\\\\m\\end{matrix}}\\right\\}} is a Stirling number of the second kind and where the individual terms in the expansion satisfy z i ( 1 − z ) i + 1 = ∑ k = 0 i ( i k ) ( − 1 ) k − i ( 1 − z ) k + 1 {\\displaystyle {\\frac {z^{i}}{(1-z)^{i+1}}}=\\sum _{k=0}^{i}{\\binom {i}{k}}{\\frac {(-1)^{k-i}}{(1-z)^{k+1}}}} |
| ∑ k < n ( n − k k ) n n − k z k {\\displaystyle \\sum _{k<n}{\\binom {n-k}{k}}{\\frac {n}{n-k}}z^{k}} | ( 1 + 1 + 4 z 2 ) n + ( 1 − 1 + 4 z 2 ) n {\\displaystyle \\left({\\frac {1+{\\sqrt {1+4z}}}{2}}\\right)^{n}+\\left({\\frac {1-{\\sqrt {1+4z}}}{2}}\\right)^{n}} | |
| ∑ n 1 , … , n m ≥ 0 min ( n 1 , … , n m ) z 1 n 1 ⋯ z m n m {\\displaystyle \\sum _{n_{1},\\ldots ,n_{m}\\geq 0}\\min(n_{1},\\ldots ,n_{m})z_{1}^{n_{1}}\\cdots z_{m}^{n_{m}}} | z 1 ⋯ z m ( 1 − z 1 ) ⋯ ( 1 − z m ) ( 1 − z 1 ⋯ z m ) {\\displaystyle {\\frac {z_{1}\\cdots z_{m}}{(1-z_{1})\\cdots (1-z_{m})(1-z_{1}\\cdots z_{m})}}} | The two-variable case is given by M ( w , z ) := ∑ m , n ≥ 0 min ( m , n ) w m z n = w z ( 1 − w ) ( 1 − z ) ( 1 − w z ) {\\displaystyle M(w,z):=\\sum _{m,n\\geq 0}\\min(m,n)w^{m}z^{n}={\\frac {wz}{(1-w)(1-z)(1-wz)}}} |
| ∑ n = 0 ∞ ( s n ) z n {\\displaystyle \\sum _{n=0}^{\\infty }{\\binom {s}{n}}z^{n}} | ( 1 + z ) s {\\displaystyle (1+z)^{s}} | s ∈ C {\\displaystyle s\\in \\mathbb {C} } |
| ∑ n = 0 ∞ ( n k ) z n {\\displaystyle \\sum _{n=0}^{\\infty }{\\binom {n}{k}}z^{n}} | z k ( 1 − z ) k + 1 {\\displaystyle {\\frac {z^{k}}{(1-z)^{k+1}}}} | k ∈ N {\\displaystyle k\\in \\mathbb {N} } |
| ∑ n = 1 ∞ log ( n ) z n {\\displaystyle \\sum _{n=1}^{\\infty }\\log {(n)}z^{n}} | − ∂ ∂ s L i s ( z ) / s = 0 {\\displaystyle \\left.-{\\frac {\\partial }{\\partial s}}\\operatorname {{Li}_{s}(z)} \\right/_{s=0}} | |
`t
>>See also
• `F33f`_`[Moment-generating function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Moment-generating_function]`_`f
• `F33f`_`[Probability-generating function`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Probability-generating_function]`_`f
• `F33f`_`[Generating function transformation`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Generating_function_transformation]`_`f
• `F33f`_`[Stanley's reciprocity theorem`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Stanley's_reciprocity_theorem]`_`f
• `F33f`_`[Integer partition`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Integer_partition]`_`f
• `F33f`_`[Combinatorial principles`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Combinatorial_principles]`_`f
• `F33f`_`[Cyclic sieving`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cyclic_sieving]`_`f
• `F33f`_`[Z-transform`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Z-transform]`_`f
• `F33f`_`[Umbral calculus`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Umbral_calculus]`_`f
• `F33f`_`[Coins in a fountain`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Coins_in_a_fountain]`_`f
>>Notes
`:cite-note-23`!note 1.`! `F0af`_`[↑`#cite-ref-23]`_`f Incidentally, we also have a corresponding formula when `*m`* < 0 given by ∑ ∑ n = 0 ∞ ∞ g n + m z n = G ( z ) − − g 0 − − g 1 z − − ⋯ ⋯ − − g m − − 1 z m − − 1 z m . {\\displaystyle \\sum _{n=0}^{\\infty }g_{n+m}z^{n}={\\frac {G(z)-g_{0}-g_{1}z-\\cdots -g_{m-1}z^{m-1}}{z^{m}}}\\,.}
>>References
`:cite-note-1`!1.`! `F0af`_`[↑`#cite-ref-1]`_`f This alternative term can already be found in E.N. Gilbert (1956), "Enumeration of Labeled graphs", `*`F33f`_`[Canadian Journal of Mathematics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Canadian_Journal_of_Mathematics]`_`f`* 3, p. 405–411, but its use is rare before the year 2000; since then it appears to be increasing.
`:cite-note-2`!2.`! `F0af`_`[↑`#cite-ref-2]`_`f `:citerefknuth1997`a`F33f`_`[Knuth, Donald E.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Donald_Knuth]`_`f (1997). "§1.2.9 Generating Functions". `*Fundamental Algorithms`*. `F33f`_`[The Art of Computer Programming`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=The_Art_of_Computer_Programming]`_`f. Vol. 1 (3rd ed.). Addison-Wesley. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 0-201-89683-4.
`:cite-note-3`!3.`! `F0af`_`[↑`#cite-ref-3]`_`f `F33f`_`[Flajolet & Sedgewick 2009`#citerefflajoletsedgewick2009]`_`f, p. 95
`:cite-note-4`!4.`! `F0af`_`[↑`#cite-ref-4]`_`f "Lambert series identity". `*Math Overflow`*. 2017.
`:cite-note-5`!5.`! `F0af`_`[↑`#cite-ref-5]`_`f `:citerefapostol1976`a`F33f`_`[Apostol, Tom M.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Tom_M._Apostol]`_`f (1976), `*Introduction to analytic number theory`*, Undergraduate Texts in Mathematics, New York-Heidelberg: Springer-Verlag, `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0-387-90163-3, `F33f`_`[MR`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MR_(identifier)]`_`f 0434929, `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 0335.10001 pp.42–43
`:cite-note-w56-6`!6.`! `F0af`_`[↑`#cite-ref-w56-6-0]`_`f `F33f`_`[Wilf 1994`#citerefwilf1994]`_`f, p. 56
`:cite-note-w59-7`!7.`! `F0af`_`[↑`#cite-ref-w59-7-0]`_`f `F33f`_`[Wilf 1994`#citerefwilf1994]`_`f, p. 59
`:cite-note-8`!8.`! `F0af`_`[↑`#cite-ref-8]`_`f `:citerefhardywrightheath-brownsilverman2008`aHardy, G.H.; Wright, E.M.; Heath-Brown, D.R; Silverman, J.H. (2008). `*An Introduction to the Theory of Numbers`* (6th ed.). Oxford University Press. p. 339. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 9780199219858.
`:cite-note-9`!9.`! `F0af`_`[↑`#cite-ref-9]`_`f `:citerefknuth1992`aKnuth, D. E. (1992). "Convolution Polynomials". `*Mathematica J`*. `!2`!: 67–78. `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:math/9207221. `F33f`_`[Bibcode`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Bibcode_(identifier)]`_`f:1992math......7221K.
`:cite-note-10`!10.`! `F0af`_`[↑`#cite-ref-10]`_`f `:citerefspivey2007`aSpivey, Michael Z. (2007). "Combinatorial Sums and Finite Differences". `*Discrete Math`*. `!307`! (24): 3130–3146. `F33f`_`[doi`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Doi_(identifier)]`_`f:10.1016/j.disc.2007.03.052. `F33f`_`[MR`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=MR_(identifier)]`_`f 2370116.
`:cite-note-11`!11.`! `F0af`_`[↑`#cite-ref-11]`_`f `:citerefmathar2012`aMathar, R. J. (2012). "Yet another table of integrals". `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:1207.5845 [math.CA]. v4 eq. (0.4)
`:cite-note-12`!12.`! `F0af`_`[↑`#cite-ref-12]`_`f `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, Table 265 in §6.1 for finite sum identities involving the Stirling number triangles.
`:cite-note-gflect-13`!13.`! `F0af`_`[↑`#cite-ref-gflect-13-0]`_`f `F33f`_`[Lando 2003`#citereflando2003]`_`f, §2.4
`:cite-note-14`!14.`! `F0af`_`[↑`#cite-ref-14]`_`f Example from `:citerefstanleyfomin1997`aStanley, Richard P.; Fomin, Sergey (1997). "§6.3". `*Enumerative Combinatorics: Volume 2`*. Cambridge Studies in Advanced Mathematics. Vol. 62. Cambridge University Press. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0-521-78987-5.
`:cite-note-taocpv1-15`!15.`! `F0af`_`[↑`#cite-ref-taocpv1-15-0]`_`f `F33f`_`[Knuth 1997`#citerefknuth1997]`_`f, §1.2.9
`:cite-note-16`!16.`! `F0af`_`[↑`#cite-ref-16]`_`f Solution to `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, p. 569, exercise 7.36
`:cite-note-17`!17.`! `F0af`_`[↑`#cite-ref-17]`_`f `F33f`_`[Flajolet & Sedgewick 2009`#citerefflajoletsedgewick2009]`_`f, §B.4
`:cite-note-18`!18.`! `F0af`_`[↑`#cite-ref-18]`_`f `:citerefschneider2007`aSchneider, C. (2007). "Symbolic Summation Assists Combinatorics". `*Sém. Lothar. Combin`*. `!56`!: 1–36.
`:cite-note-19`!19.`! `F0af`_`[↑`#cite-ref-19]`_`f See the usage of these terms in `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, §7.4 on special sequence generating functions.
`:cite-note-good-1986-20`!20.`! `F0af`_`[↑`#cite-ref-good-1986-20-0]`_`f `:citerefgood1986`aGood, I. J. (1986). "On applications of symmetric Dirichlet distributions and their mixtures to contingency tables". `*`F33f`_`[Annals of Statistics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Annals_of_Statistics]`_`f`*. `!4`! (6): 1159–1189. `F33f`_`[doi`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Doi_(identifier)]`_`f:10.1214/aos/1176343649.
`:cite-note-21`!21.`! `F0af`_`[↑`#cite-ref-21]`_`f For more complete information on the properties of J-fractions see: `:citerefflajolet1980`aFlajolet, P. (1980). "Combinatorial aspects of continued fractions" (PDF). `*Discrete Mathematics`*. `!32`! (2): 125–161. `F33f`_`[doi`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Doi_(identifier)]`_`f:10.1016/0012-365X(80)90050-3. `:citerefwall2018`aWall, H.S. (2018) [1948]. `*Analytic Theory of Continued Fractions`*. Dover. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0-486-83044-5.
`:cite-note-22`!22.`! `F0af`_`[↑`#cite-ref-22]`_`f See the following articles: `:citerefschmidt2016`aSchmidt, Maxie D. (2016). "Continued Fractions for Square Series Generating Functions". `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:1612.02778 [math.NT]. `:citerefschmidt2017`a— (2017). "Jacobi-Type Continued Fractions for the Ordinary Generating Functions of Generalized Factorial Functions". `*Journal of Integer Sequences`*. `!20`!. `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:1610.09691. 17.3.4. `:citerefschmidt2017`a— (2017). "Jacobi-Type Continued Fractions and Congruences for Binomial Coefficients Modulo Integers `*h`* ≥ 2". `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:1702.01374 [math.CO].
`:cite-note-24`!23.`! `F0af`_`[↑`#cite-ref-24]`_`f `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, §8.3
`:cite-note-25`!24.`! `F0af`_`[↑`#cite-ref-25]`_`f `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, Example 6 in §7.3 for another method and the complete setup of this problem using generating functions. This more "convoluted" approach is given in Section 7.5 of the same reference.
`:cite-note-26`!25.`! `F0af`_`[↑`#cite-ref-26]`_`f `F33f`_`[Lando 2003`#citereflando2003]`_`f, §5
`:cite-note-27`!26.`! `F0af`_`[↑`#cite-ref-27]`_`f `F33f`_`[Hardy et al. 2008`#citerefhardywrightheath-brownsilverman2008]`_`f, §19.12
`:cite-note-28`!27.`! `F0af`_`[↑`#cite-ref-28]`_`f `:citerefhardywright`aHardy, G.H.; Wright, E.M. `*An Introduction to the Theory of Numbers`*. p.288, Th.361
`:cite-note-29`!28.`! `F0af`_`[↑`#cite-ref-29]`_`f `F33f`_`[Graham, Knuth & Patashnik 1994`#citerefgrahamknuthpatashnik1994]`_`f, p. 535, exercise 5.71
`:cite-note-30`!29.`! `F0af`_`[↑`#cite-ref-30]`_`f See also the `*1031 Generating Functions`* found in `:citerefplouffe1992`aPlouffe, Simon (1992). `*Approximations de séries génératrices et quelques conjectures`* [`*Approximations of generating functions and a few conjectures`*] (Masters) (in French). Université du Québec à Montréal. `F33f`_`[arXiv`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ArXiv_(identifier)]`_`f:0911.4975.
>>>Citations
• `:citerefaigner2007`aAigner, Martin (2007). `*A Course in Enumeration`*. Graduate Texts in Mathematics. Vol. 238. Springer. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-3-540-39035-0.
• `:citerefdoubiletrotastanley1972`aDoubilet, Peter; `F33f`_`[Rota, Gian-Carlo`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Gian-Carlo_Rota]`_`f; `F33f`_`[Stanley, Richard`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Richard_P._Stanley]`_`f (1972). "On the foundations of combinatorial theory. VI. The idea of generating function". `*Proceedings of the Sixth Berkeley Symposium on Mathematical Statistics and Probability`*. `!2`!: 267–318. `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 0267.05002. Reprinted in `:citerefrota1975`a`F33f`_`[Rota, Gian-Carlo`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Gian-Carlo_Rota]`_`f (1975). "3. The idea of generating function". `*Finite Operator Calculus`*. With the collaboration of P. Doubilet, C. Greene, D. Kahaner, `F33f`_`[A. Odlyzko`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Andrew_Odlyzko]`_`f and `F33f`_`[R. Stanley`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Richard_P._Stanley]`_`f. Academic Press. pp. 83–134. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 0-12-596650-4. `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 0328.05007.
• `:citerefflajoletsedgewick2009`a`F33f`_`[Flajolet, Philippe`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Philippe_Flajolet]`_`f; `F33f`_`[Sedgewick, Robert`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Robert_Sedgewick_(computer_scientist)]`_`f (2009). `F33f`_`[Analytic Combinatorics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Analytic_Combinatorics]`_`f. Cambridge University Press. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0-521-89806-5. `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 1165.05001.
• `:citerefgouldenjackson2004`aGoulden, Ian P.; `F33f`_`[Jackson, David M.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=David_M._Jackson]`_`f (2004). `*Combinatorial Enumeration`*. `F33f`_`[Dover Publications`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Dover_Publications]`_`f. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0486435978.
• `:citerefgrahamknuthpatashnik1994`a`F33f`_`[Graham, Ronald L.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ronald_Graham]`_`f; `F33f`_`[Knuth, Donald E.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Donald_Knuth]`_`f; `F33f`_`[Patashnik, Oren`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Oren_Patashnik]`_`f (1994). "Chapter 7: Generating Functions". `*`F33f`_`[Concrete Mathematics. A foundation for computer science`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Concrete_Mathematics]`_`f`* (2nd ed.). Addison-Wesley. pp. 320–380. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 0-201-55802-5. `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 0836.00001.
• `:citereflando2003`aLando, Sergei K. (2003). `*Lectures on Generating Functions`*. American Mathematical Society. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 978-0-8218-3481-7.
• `:citerefwilf1994`a`F33f`_`[Wilf, Herbert S.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Herbert_Wilf]`_`f (1994). `*Generatingfunctionology`* (2nd ed.). Academic Press. `F33f`_`[ISBN`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=ISBN_(identifier)]`_`f 0-12-751956-4. `F33f`_`[Zbl`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Zbl_(identifier)]`_`f 0831.05001.
>>External links
• "Introduction To Ordinary Generating Functions" by Mike Zabrocki, York University, Mathematics and Statistics
• "Generating function", `*`F33f`_`[Encyclopedia of Mathematics`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Encyclopedia_of_Mathematics]`_`f`*, `F33f`_`[EMS Press`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=European_Mathematical_Society]`_`f, 2001 [1994]
• Generating Functions, Power Indices and Coin Change at `F33f`_`[cut-the-knot`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Cut-the-knot]`_`f
• "Generating Functions" by `F33f`_`[Ed Pegg Jr.`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Ed_Pegg_Jr.]`_`f, `F33f`_`[Wolfram Demonstrations Project`:/page/wikibook/entry.mu`zim=wikipedia_en_all_nopic_2025-08.zim|entry_path=Wolfram_Demonstrations_Project]`_`f, 2007.
`c`F0af`_`[↑ Back to top`#top]`_`f`a